取消订单

This commit is contained in:
苏尹岚
2020-07-30 14:53:49 +08:00
parent 9fb4e8899f
commit 1d03fb5b80
2 changed files with 17 additions and 9 deletions

View File

@@ -32,6 +32,12 @@ func OnCallbackMsg(msg *jdshopapi.CallBackResult) (err error) {
jxutils.CallMsgHandler(func() {
SaveJdsOrders(msg)
}, jxutils.ComposeUniversalOrderID(msg.OrderID, model.VendorIDJDShop))
case jcqapi.TopicOrderCancel:
jxutils.CallMsgHandler(func() {
CurPurchaseHandler.CancelOrder(jxcontext.AdminCtx, &model.GoodsOrder{
VendorOrderID: msg.OrderID,
}, "系统取消")
}, jxutils.ComposeUniversalOrderID(msg.OrderID, model.VendorIDJDShop))
default:
return fmt.Errorf("暂不支持的topic类型topic: %v", msgType)
}