取消订单
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user