diff --git a/business/partner/delivery/mtps/waybill.go b/business/partner/delivery/mtps/waybill.go index 163650ef0..7e63ba2ac 100644 --- a/business/partner/delivery/mtps/waybill.go +++ b/business/partner/delivery/mtps/waybill.go @@ -85,6 +85,9 @@ func (c *DeliveryHandler) OnWaybillExcept(msg *mtpsapi.CallbackOrderExceptionMsg func (c *DeliveryHandler) onWaybillMsg(msg *mtpsapi.CallbackOrderMsg) (retVal *mtpsapi.CallbackResponse) { order := c.callbackMsg2Waybill(msg) + globals.SugarLogger.Debugf("============msg1 %s", utils.Format4Output(msg, false)) + globals.SugarLogger.Debugf("============order %s", utils.Format4Output(order, false)) + switch msg.Status { case mtpsapi.OrderStatusWaitingForSchedule: data, err := api.MtpsAPI.QueryOrderStatus(msg.DeliveryID, msg.MtPeisongID) @@ -113,7 +116,9 @@ func (c *DeliveryHandler) onWaybillMsg(msg *mtpsapi.CallbackOrderMsg) (retVal *m order2, _ := partner.CurOrderManager.LoadOrder(order.VendorOrderID, order.OrderVendorID) // order2, _ := dao.GetSimpleOrder(dao.GetDB(), order.VendorOrderID) //查不到订单可能就是果园的订单 + globals.SugarLogger.Debugf("============order2 %s", utils.Format4Output(order2, false)) if order2 == nil { + globals.SugarLogger.Debugf("============msg %s", utils.Format4Output(msg, false)) c.pushToGy(msg) return mtpsapi.SuccessResponse } @@ -194,6 +199,7 @@ func (c *DeliveryHandler) pushToGy(msg *mtpsapi.CallbackOrderMsg) { return } request.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8") + globals.SugarLogger.Debugf("============request %s", utils.Format4Output(request, false)) cl.Do(request) }