取消订单bug
This commit is contained in:
@@ -34,7 +34,10 @@ func OnCallbackMsg(msg *jdshopapi.CallBackResult) (err error) {
|
||||
})
|
||||
case jcqapi.TopicOrderCancel:
|
||||
utils.CallFuncAsync(func() {
|
||||
CurPurchaseHandler.CancelOrder(jxcontext.AdminCtx, getRealOrderID(msg.OrderID), "系统取消")
|
||||
order := getRealOrderID(msg.OrderID)
|
||||
if order != nil {
|
||||
CurPurchaseHandler.CancelOrder(jxcontext.AdminCtx, order, "系统取消")
|
||||
}
|
||||
})
|
||||
default:
|
||||
return fmt.Errorf("暂不支持的topic类型!topic: %v", msgType)
|
||||
|
||||
Reference in New Issue
Block a user