美团调整单不自动同意,调整单微信模板修改

This commit is contained in:
苏尹岚
2020-05-22 08:39:56 +08:00
parent afff23c37d
commit 4eea870713
4 changed files with 63 additions and 3 deletions

View File

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