短信在拣货完成后发送

This commit is contained in:
suyl
2021-08-26 11:50:37 +08:00
parent 5faebdf3f0
commit 8bdf11d62b
4 changed files with 15 additions and 2 deletions

View File

@@ -398,7 +398,7 @@ func (s *DefScheduler) OnOrderNew(order *model.GoodsOrder, isPending bool, isAut
}
OrderProfitWarning(order)
if !isAuto {
smsmsg.NotifyNewOrder(order)
//smsmsg.NotifyNewOrder(order)
}
// smsmsg.NotifyNewUserOrder(order)
push.NotifyNewOrder(order)
@@ -484,6 +484,9 @@ func (s *DefScheduler) OnOrderStatusChanged(order *model.GoodsOrder, status *mod
if statusChanged && status.Status == model.OrderStatusCanceled {
s.notifyOrderCanceled(savedOrderInfo.order)
}
if status.Status == model.OrderStatusFinishedPickup {
smsmsg.NotifyPickOrder(order)
}
msghub.OnFinishedPickup(savedOrderInfo.order)
} else if status.Status == model.OrderStatusApplyCancel || //model.IsOrderLockStatus(status.Status) ||
status.Status == model.OrderStatusApplyFailedGetGoods || //model.IsOrderUnlockStatus(status.Status) ||
@@ -1573,7 +1576,7 @@ func (s *DefScheduler) notifyNewOrder(order *model.GoodsOrder, isAuto bool) {
}
OrderProfitWarning(order)
if !isAuto {
smsmsg.NotifyNewOrder(order)
//smsmsg.NotifyNewOrder(order)
}
// smsmsg.NotifyNewUserOrder(order)
push.NotifyNewOrder(order)