From 74425ac3c95a4d769a304931b189eb3e8739b2b4 Mon Sep 17 00:00:00 2001 From: gazebo Date: Sun, 21 Jul 2019 09:45:37 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E4=BA=AC=E4=B8=9C=E5=8F=96=E6=B6=88?= =?UTF-8?q?=E8=AE=A2=E5=8D=95BUG=E4=BF=AE=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jd/order.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/partner/purchase/jd/order.go b/business/partner/purchase/jd/order.go index 453af3bd7..8ee44a5e9 100644 --- a/business/partner/purchase/jd/order.go +++ b/business/partner/purchase/jd/order.go @@ -393,7 +393,7 @@ func (c *PurchaseHandler) AgreeOrRefuseCancel(ctx *jxcontext.Context, order *mod func (c *PurchaseHandler) CancelOrder(ctx *jxcontext.Context, order *model.GoodsOrder, reason string) (err error) { if globals.EnableJdStoreWrite { - api.JdAPI.DeliveryEndOrder(order.VendorOrderID, ctx.GetUserName()) + c.Swtich2SelfDeliver(order, ctx.GetUserName()) err = api.JdAPI.CancelAndRefund(order.VendorOrderID, ctx.GetUserName(), reason) } return err