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

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

@@ -1358,7 +1358,12 @@ func (s *DefScheduler) notifyNewOrder(order *model.GoodsOrder) {
utils.CallFuncAsync(func() {
order = setFakeActualPayPrice(order)
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order)
weixinmsg.NotifyNewOrder(order)
//目前暂且认为AdjustCount > 0 就是调整单
if order.AdjustCount > 0 {
weixinmsg.NotifyAdjustOrder(order)
} else {
weixinmsg.NotifyNewOrder(order)
}
smsmsg.NotifyNewOrder(order)
OrderProfitWarning(order)
smsmsg.NotifyNewUserOrder(order)