京东订单转移
This commit is contained in:
@@ -761,6 +761,9 @@ func (s *DefScheduler) solutionJdsOrder(bill *model.Waybill) (err error) {
|
|||||||
if len(bill.VendorOrderID) > 12 {
|
if len(bill.VendorOrderID) > 12 {
|
||||||
if utils.Str2Int(bill.VendorOrderID[12:len(bill.VendorOrderID)]) > 1 {
|
if utils.Str2Int(bill.VendorOrderID[12:len(bill.VendorOrderID)]) > 1 {
|
||||||
err = jdshop.CurPurchaseHandler.OrderTransfer(jxcontext.AdminCtx, bill.VendorOrderID, bill.VendorWaybillID, true)
|
err = jdshop.CurPurchaseHandler.OrderTransfer(jxcontext.AdminCtx, bill.VendorOrderID, bill.VendorWaybillID, true)
|
||||||
|
if err != nil {
|
||||||
|
globals.SugarLogger.Errorf("京东商城订单自动转移失败!", err)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
err = jdshop.CurPurchaseHandler.OrderExport(jxcontext.AdminCtx, bill.VendorOrderID, bill.VendorWaybillID, true)
|
err = jdshop.CurPurchaseHandler.OrderExport(jxcontext.AdminCtx, bill.VendorOrderID, bill.VendorWaybillID, true)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user