diff --git a/business/partner/delivery/sfps/waybill.go b/business/partner/delivery/sfps/waybill.go index 31a423475..6e864c649 100644 --- a/business/partner/delivery/sfps/waybill.go +++ b/business/partner/delivery/sfps/waybill.go @@ -510,7 +510,9 @@ func OnWaybillExceptSF(msg *sfps2.RiderException) (retVal *sfps2.CallbackRespons // GetWaybillByStatus 根据orderStatus 获取waybill结构 func GetWaybillByStatus(urlIndex string, msg interface{}) *model.Waybill { + globals.SugarLogger.Debugf("GetWaybillByStatus msg=%s", utils.Format4Output(msg, false)) waybill := &model.Waybill{} + switch urlIndex { case sfps2.UrlIndexRiderStatus: retVal := msg.(sfps2.RiderStatus) @@ -543,7 +545,7 @@ func GetWaybillByStatus(urlIndex string, msg interface{}) *model.Waybill { case sfps2.UrlIndexOrderComplete: retVal := msg.(sfps2.OrderComplete) waybill = &model.Waybill{ - VendorWaybillID: retVal.SFOrderID, + VendorWaybillID: retVal.SfOrderID, WaybillVendorID: model.VendorIDSFPS, VendorOrderID: retVal.ShopOrderID, CourierName: retVal.OperatorName,