美团自动确认退款
This commit is contained in:
@@ -396,14 +396,14 @@ func (c *PurchaseHandler) callbackMsg2Status(msg *mtwmapi.CallbackMsg) (orderSta
|
|||||||
if msg.Cmd == mtwmapi.MsgTypeOrderPartialRefund {
|
if msg.Cmd == mtwmapi.MsgTypeOrderPartialRefund {
|
||||||
if notifyType == mtwmapi.NotifyTypePartyApply {
|
if notifyType == mtwmapi.NotifyTypePartyApply {
|
||||||
if globals.EnableMtwmStoreWrite {
|
if globals.EnableMtwmStoreWrite {
|
||||||
goods, err := dao.GetSimpleOrder(dao.GetDB(), orderID)
|
// goods, err := dao.GetSimpleOrder(dao.GetDB(), orderID)
|
||||||
if err == nil {
|
// if err == nil {
|
||||||
if goods.Status < model.OrderStatusDelivering {
|
// if goods.Status < model.OrderStatusDelivering {
|
||||||
api.MtwmAPI.OrderRefundAgree(utils.Str2Int64(orderID), "自动确认退款")
|
api.MtwmAPI.OrderRefundAgree(utils.Str2Int64(orderID), "自动确认退款")
|
||||||
} else {
|
// } else {
|
||||||
api.MtwmAPI.OrderRefundReject(utils.Str2Int64(orderID), "商品配送中,请联系门店。") // todo 京东与饿百都没有售前用户提出订单调整的,自动拒绝调整单
|
// api.MtwmAPI.OrderRefundReject(utils.Str2Int64(orderID), "商品配送中,请联系门店。") // todo 京东与饿百都没有售前用户提出订单调整的,自动拒绝调整单
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
} else if notifyType == mtwmapi.NotifyTypeSuccess {
|
} else if notifyType == mtwmapi.NotifyTypeSuccess {
|
||||||
vendorStatus = fakeOrderAdjustFinished
|
vendorStatus = fakeOrderAdjustFinished
|
||||||
|
|||||||
Reference in New Issue
Block a user