京东订单转移

This commit is contained in:
苏尹岚
2020-06-04 17:13:18 +08:00
parent 4f10721d59
commit 096355d1d0
4 changed files with 27 additions and 4 deletions

View File

@@ -1176,6 +1176,7 @@ func TransferJdsOrder(ctx *jxcontext.Context, vendorOrderID string, storeID int)
func SendJdwlForJdsOrder(ctx *jxcontext.Context, vendorOrderID string) (err error) {
order, err := partner.CurOrderManager.LoadOrder(vendorOrderID, model.VendorIDJDShop)
handler := partner.DeliveryPlatformHandlers[model.VendorIDJDWL]
_, err = handler.Handler.CreateWaybill(order, 0)
waybill, err := handler.Handler.CreateWaybill(order, 0)
jdshop.CurPurchaseHandler.OrderTransfer(ctx, vendorOrderID, waybill.VendorWaybillID, false)
return err
}