jds订单取消修改
This commit is contained in:
@@ -36,7 +36,9 @@ func OnCallbackMsg(msg *jdshopapi.CallBackResult) (err error) {
|
|||||||
utils.CallFuncAsync(func() {
|
utils.CallFuncAsync(func() {
|
||||||
order := getRealOrderID(msg.OrderID)
|
order := getRealOrderID(msg.OrderID)
|
||||||
if order != nil {
|
if order != nil {
|
||||||
CurPurchaseHandler.CancelOrder(jxcontext.AdminCtx, order, "系统取消")
|
if order.Status != model.OrderStatusCanceled {
|
||||||
|
CurPurchaseHandler.CancelOrder(jxcontext.AdminCtx, order, "系统取消")
|
||||||
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
default:
|
default:
|
||||||
@@ -123,6 +125,7 @@ func result2Orders(msg *jdshopapi.CallBackResult) (order *model.GoodsOrder, err
|
|||||||
order.BusinessType = model.BusinessTypeImmediate
|
order.BusinessType = model.BusinessTypeImmediate
|
||||||
} else {
|
} else {
|
||||||
globals.SugarLogger.Warnf("暂不支持的京东商城订单类型!type: %v", msg.OrderState)
|
globals.SugarLogger.Warnf("暂不支持的京东商城订单类型!type: %v", msg.OrderState)
|
||||||
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
//结算类型
|
//结算类型
|
||||||
|
|||||||
Reference in New Issue
Block a user