From 2d855e18bb6a531ca9c69b56ca60331b1cc44dbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8B=8F=E5=B0=B9=E5=B2=9A?= <770236076@qq.com> Date: Fri, 31 Jul 2020 13:52:57 +0800 Subject: [PATCH] =?UTF-8?q?jdsorder=E8=A1=A5=E5=85=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/partner/purchase/jdshop/callback.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/business/partner/purchase/jdshop/callback.go b/business/partner/purchase/jdshop/callback.go index e43544522..0ff5b9daa 100644 --- a/business/partner/purchase/jdshop/callback.go +++ b/business/partner/purchase/jdshop/callback.go @@ -29,13 +29,13 @@ func OnCallbackMsg(msg *jdshopapi.CallBackResult) (err error) { msgType := msg.MsgType switch msgType { case jcqapi.TopicOrderPay: - jxutils.CallMsgHandler(func() { + utils.CallFuncAsync(func() { SaveJdsOrders(msg) - }, jxutils.ComposeUniversalOrderID(msg.OrderID, model.VendorIDJDShop)) + }) case jcqapi.TopicOrderCancel: - jxutils.CallMsgHandler(func() { + utils.CallFuncAsync(func() { CurPurchaseHandler.CancelOrder(jxcontext.AdminCtx, getRealOrderID(msg.OrderID), "系统取消") - }, jxutils.ComposeUniversalOrderID(msg.OrderID, model.VendorIDJDShop)) + }) default: return fmt.Errorf("暂不支持的topic类型!topic: %v", msgType) }