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