This commit is contained in:
邹宗楠
2022-05-16 18:27:38 +08:00
parent 572f3145a6
commit e1c2fa9fbc
2 changed files with 14 additions and 15 deletions

View File

@@ -622,6 +622,7 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
if order.Status > model.OrderStatusEndBegin {
s.ProxyCancelWaybill(order, bill, partner.CancelWaybillReasonNotAcceptIntime, partner.CancelWaybillReasonStrNotAcceptIntime)
s.SelfDeliverDelivered(order, "自送或三方")
partner.CurOrderManager.OnOrderMsg(order, "订单处于结束状态来的运单", "取消三方运单,转自送")
}
// 判断订单来源与运单是否为同一来源
if model.IsWaybillPlatformOwn(bill) {
@@ -639,7 +640,7 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
// 如果转自送失败,且取消三方失败,循环多次转自送
s.swtich2SelfDeliverWithRetry(savedOrderInfo, bill, switch2SelfDeliverRetryCount, switch2SelfDeliverRetryGap)
}
partner.CurOrderManager.OnOrderMsg(order, "自送出设置失败", err.Error())
partner.CurOrderManager.OnOrderMsg(order, "自送失败,并多次转自送", err.Error())
}
s.notify3rdPartyWaybill(order, bill, isBillAlreadyCandidate)
} else {