diff --git a/business/jxcallback/orderman/orderman_ext.go b/business/jxcallback/orderman/orderman_ext.go index 858a62124..c293d5d53 100644 --- a/business/jxcallback/orderman/orderman_ext.go +++ b/business/jxcallback/orderman/orderman_ext.go @@ -1344,6 +1344,7 @@ func (c *OrderManager) AmendMissingOrders(ctx *jxcontext.Context, vendorIDs []in VendorOrgCode string VendorStoreID string } + globals.SugarLogger.Debugf("dateVendorList============== :%s", utils.Format4Output(dateVendorList, false)) if len(dateVendorList) > 0 { var missingOrderList []*tOrderVendorPair var updateOrderStatusList []*model.GoodsOrder diff --git a/business/partner/delivery/mtps/waybill.go b/business/partner/delivery/mtps/waybill.go index 1fefc3b46..bbb53774c 100644 --- a/business/partner/delivery/mtps/waybill.go +++ b/business/partner/delivery/mtps/waybill.go @@ -104,7 +104,6 @@ func (c *DeliveryHandler) onWaybillMsg(msg *mtpsapi.CallbackOrderMsg) (retVal *m } } - globals.SugarLogger.Debugf("===========msg := %s", utils.Format4Output(msg, false)) store, _ := dao.GetStoreDetail(dao.GetDB(), goodsOrder.JxStoreID, goodsOrder.VendorID, goodsOrder.VendorOrgCode) switch msg.Status { case mtpsapi.OrderStatusWaitingForSchedule: diff --git a/business/partner/purchase/mtwm/order.go b/business/partner/purchase/mtwm/order.go index 860fc48cb..8e9013375 100644 --- a/business/partner/purchase/mtwm/order.go +++ b/business/partner/purchase/mtwm/order.go @@ -661,6 +661,7 @@ func (c *PurchaseHandler) ListOrders(ctx *jxcontext.Context, vendorOrgCode strin } else { tmpOrderIDs, err = getAPI(vendorOrgCode, 0, vendorStoreID).GetOrderIdByDaySeq(vendorStoreID, queryDate, seqStart, seqEnd) } + globals.SugarLogger.Debugf("============tmpOrderIDs := %s", utils.Format4Output(tmpOrderIDs, false)) if len(tmpOrderIDs) > 0 { for _, v := range tmpOrderIDs { orderIDs = append(orderIDs, utils.Int64ToStr(v)) diff --git a/controllers/jd_callback.go b/controllers/jd_callback.go index 165b6817f..616babe6d 100644 --- a/controllers/jd_callback.go +++ b/controllers/jd_callback.go @@ -110,7 +110,6 @@ func (c *DjswController) OrderCommentPush() { func (c *DjswController) Token() { urlValues, err := utils.HTTPBody2Values(c.Ctx.Input.RequestBody, false) - globals.SugarLogger.Info(utils.Format4Output(utils.URLValues2Map(urlValues), false)) globals.SugarLogger.Info(utils.Format4Output(utils.Format4Output(err, false), false)) jd.OnTokenChange(urlValues) c.Data["json"] = c.transferResponse("Token", nil) diff --git a/controllers/taobao_vegetable.go b/controllers/taobao_vegetable.go index 048f73b8b..68fc1aa71 100644 --- a/controllers/taobao_vegetable.go +++ b/controllers/taobao_vegetable.go @@ -9,7 +9,6 @@ import ( "git.rosy.net.cn/jx-callback/business/jxstore/common" "git.rosy.net.cn/jx-callback/business/model" taoVegetable "git.rosy.net.cn/jx-callback/business/partner/purchase/tao_vegetable" - "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api" "github.com/astaxie/beego/server/web" "io/ioutil" @@ -39,7 +38,6 @@ func (c *TaoBaoVegetableController) GetCode() { } tokenInfo, err := api.TaoVegetableApi.GetStoreToken(codeData, "") if err != nil { - globals.SugarLogger.Debugf("获取门店token错误:%s", err.Error()) c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() return @@ -76,8 +74,6 @@ func (c *TaoBaoVegetableController) OrderStatus() { // 获取url参数 values, err := url.ParseQuery(urlParam) - globals.SugarLogger.Debugf("ReaderOrderInfo := %s", utils.Format4Output(urlParam, false)) - globals.SugarLogger.Debugf("ReaderOrderInfo err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -86,8 +82,6 @@ func (c *TaoBaoVegetableController) OrderStatus() { // 获取body参数 order, body, err := api.TaoVegetableApi.ReaderOrderInfo(c.Ctx.Request) - globals.SugarLogger.Debugf("order_status ReaderOrderInfo:= %s", utils.Format4Output(order, false)) - globals.SugarLogger.Debugf("order_status ReaderOrderInfo:= %s", utils.Format4Output(order, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -121,8 +115,6 @@ func (c *TaoBaoVegetableController) ApplyCancelOrder() { // 获取url参数 values, err := url.ParseQuery(urlParam) - globals.SugarLogger.Debugf("ApplyCancelOrder := %s", utils.Format4Output(urlParam, false)) - globals.SugarLogger.Debugf("ApplyCancelOrder err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -130,8 +122,6 @@ func (c *TaoBaoVegetableController) ApplyCancelOrder() { } afsOrder, body, err := api.TaoVegetableApi.UserApplyRefund(c.Ctx.Request) - globals.SugarLogger.Debugf("ApplyCancelOrder := %s", utils.Format4Output(afsOrder, false)) - globals.SugarLogger.Debugf("ApplyCancelOrder err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -153,7 +143,6 @@ func (c *TaoBaoVegetableController) ApplyCancelOrder() { } default: callbackResponse := taoVegetable.OnCallbackMsg(tao_vegetable.OrderStatusApplyAfs, afsOrder.OutOrderId, afsOrder) - globals.SugarLogger.Debugf("callbackResponse response : %s", utils.Format4Output(callbackResponse, false)) c.Data["json"] = callbackResponse c.ServeJSON() return @@ -166,8 +155,6 @@ func (c *TaoBaoVegetableController) UserCancelRefund() { // 获取url参数 values, err := url.ParseQuery(urlParam) - globals.SugarLogger.Debugf("UserCancelRefund := %s", utils.Format4Output(urlParam, false)) - globals.SugarLogger.Debugf("UserCancelRefund err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -175,8 +162,6 @@ func (c *TaoBaoVegetableController) UserCancelRefund() { } afsOrder, body, err := api.TaoVegetableApi.UserCancelRefundApply(c.Ctx.Request) - globals.SugarLogger.Debugf("UserCancelRefund := %s", utils.Format4Output(afsOrder, false)) - globals.SugarLogger.Debugf("UserCancelRefund err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -211,8 +196,6 @@ func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() { // 获取url参数 values, err := url.ParseQuery(urlParam) - globals.SugarLogger.Debugf("CancelOnSaleRefundOrder := %s", utils.Format4Output(urlParam, false)) - globals.SugarLogger.Debugf("CancelOnSaleRefundOrder err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -220,8 +203,6 @@ func (c *TaoBaoVegetableController) CancelOnSaleRefundOrder() { } afsOrder, body, err := api.TaoVegetableApi.OnSaleRefundOrder(c.Ctx.Request) - globals.SugarLogger.Debugf("CancelOnSaleRefundOrder := %s", utils.Format4Output(afsOrder, false)) - globals.SugarLogger.Debugf("CancelOnSaleRefundOrder err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -255,8 +236,6 @@ func (c *TaoBaoVegetableController) RefundOrderSuccess() { // 获取url参数 values, err := url.ParseQuery(urlParam) - globals.SugarLogger.Debugf("RefundOrderSuccess := %s", utils.Format4Output(urlParam, false)) - globals.SugarLogger.Debugf("RefundOrderSuccess err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON() @@ -264,8 +243,6 @@ func (c *TaoBaoVegetableController) RefundOrderSuccess() { } refundSuccess, body, err := api.TaoVegetableApi.RefundOrderFinish(c.Ctx.Request) - globals.SugarLogger.Debugf("RefundOrderSuccess := %s", utils.Format4Output(refundSuccess, false)) - globals.SugarLogger.Debugf("RefundOrderSuccess err := %s", utils.Format4Output(err, false)) if err != nil { c.Data["json"] = tao_vegetable.CallBackResultInfo(err) c.ServeJSON()