- 去掉OrderStatusDelivered状态

This commit is contained in:
gazebo
2019-04-19 15:26:13 +08:00
parent 9f01129374
commit b065c79ec3
4 changed files with 6 additions and 10 deletions

View File

@@ -263,7 +263,7 @@ func (s *DefScheduler) OnOrderStatusChanged(status *model.OrderStatus, isPending
var curWaybill *model.Waybill
if !(status.Status == model.OrderStatusCanceled) { // 订单取消时,取消所有运单
curWaybill = savedOrderInfo.waybills[savedOrderInfo.order.WaybillVendorID]
if status.Status == model.OrderStatusDelivered || status.Status == model.OrderStatusFinished {
if status.Status == model.OrderStatusFinished {
if curWaybill != nil && curWaybill.WaybillVendorID != curWaybill.OrderVendorID {
globals.SugarLogger.Infof("OnOrderStatusChanged [运营2]订单orderID:%s可能被手动点击送达会对程序状态产生不利影响请通知门店不要这样操作", status.VendorOrderID)
}