From 8409985668b0e6539f6fe9c3de8575d0dd7cea61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Wed, 23 Sep 2020 11:05:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=93=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/orderman/order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/business/jxcallback/orderman/order.go b/business/jxcallback/orderman/order.go index e6b56a88b..bda7fb937 100644 --- a/business/jxcallback/orderman/order.go +++ b/business/jxcallback/orderman/order.go @@ -1617,6 +1617,7 @@ func TransferJdsOrder(ctx *jxcontext.Context, vendorOrderID string, storeID int) if err != nil { return "", err } + order.Status = model.OrderStatusNew } else { order.VendorOrderID2 = order.VendorOrderID order.VendorOrderID = utils.Int64ToStr(jxutils.GenOrderNo()) @@ -1638,6 +1639,7 @@ func TransferJdsOrder(ctx *jxcontext.Context, vendorOrderID string, storeID int) if err != nil { return "", err } + order.Status = model.OrderStatusAccepted } for _, sku := range skus { sku.VendorOrderID = order.VendorOrderID @@ -1645,8 +1647,6 @@ func TransferJdsOrder(ctx *jxcontext.Context, vendorOrderID string, storeID int) order.Skus = append(order.Skus, sku) } setJdsOrderSeq(order) - order.Status = model.OrderStatusNew - fmt.Println("testordddddddddddddddddddddddddddddddddddd", utils.Format4Output(order, false)) err = partner.CurOrderManager.OnOrderNew(order, model.Order2Status(order)) vendorOrderIDJds = order.VendorOrderID return vendorOrderIDJds, err