Merge branch 'jdshop' of e.coding.net:rosydev/jx-callback into jdshop
This commit is contained in:
@@ -510,7 +510,9 @@ func OnWaybillExceptSF(msg *sfps2.RiderException) (retVal *sfps2.CallbackRespons
|
|||||||
|
|
||||||
// GetWaybillByStatus 根据orderStatus 获取waybill结构
|
// GetWaybillByStatus 根据orderStatus 获取waybill结构
|
||||||
func GetWaybillByStatus(urlIndex string, msg interface{}) *model.Waybill {
|
func GetWaybillByStatus(urlIndex string, msg interface{}) *model.Waybill {
|
||||||
|
globals.SugarLogger.Debugf("GetWaybillByStatus msg=%s", utils.Format4Output(msg, false))
|
||||||
waybill := &model.Waybill{}
|
waybill := &model.Waybill{}
|
||||||
|
|
||||||
switch urlIndex {
|
switch urlIndex {
|
||||||
case sfps2.UrlIndexRiderStatus:
|
case sfps2.UrlIndexRiderStatus:
|
||||||
retVal := msg.(sfps2.RiderStatus)
|
retVal := msg.(sfps2.RiderStatus)
|
||||||
@@ -543,7 +545,7 @@ func GetWaybillByStatus(urlIndex string, msg interface{}) *model.Waybill {
|
|||||||
case sfps2.UrlIndexOrderComplete:
|
case sfps2.UrlIndexOrderComplete:
|
||||||
retVal := msg.(sfps2.OrderComplete)
|
retVal := msg.(sfps2.OrderComplete)
|
||||||
waybill = &model.Waybill{
|
waybill = &model.Waybill{
|
||||||
VendorWaybillID: retVal.SFOrderID,
|
VendorWaybillID: retVal.SfOrderID,
|
||||||
WaybillVendorID: model.VendorIDSFPS,
|
WaybillVendorID: model.VendorIDSFPS,
|
||||||
VendorOrderID: retVal.ShopOrderID,
|
VendorOrderID: retVal.ShopOrderID,
|
||||||
CourierName: retVal.OperatorName,
|
CourierName: retVal.OperatorName,
|
||||||
|
|||||||
Reference in New Issue
Block a user