jdsorder补充

This commit is contained in:
苏尹岚
2020-07-31 13:52:57 +08:00
parent 5ad3eeb87d
commit 2d855e18bb

View File

@@ -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)
}