- 调用SelfDeliverDelivering要传骑手或店主手机号

This commit is contained in:
gazebo
2019-04-09 17:10:07 +08:00
parent 6ccf2d984f
commit 07f6b9d340
2 changed files with 9 additions and 3 deletions

View File

@@ -351,12 +351,12 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
s.cancelOtherWaybills(savedOrderInfo, bill, partner.CancelWaybillReasonNotAcceptIntime, partner.CancelWaybillReasonStrNotAcceptIntime)
if !s.IsOrderPlatformWaybill(bill) {
if savedOrderInfo.storeDeliveryType == scheduler.StoreDeliveryTypeByStore {
s.SelfDeliverDelivering(savedOrderInfo.order, "")
s.SelfDeliverDelivering(savedOrderInfo.order, bill.CourierMobile)
} else {
s.swtich2SelfDeliverWithRetry(savedOrderInfo, bill, 2, 10*time.Second)
}
} else if s.IsSpecialOrderPlatformWaybill(bill) {
s.SelfDeliverDelivering(savedOrderInfo.order, "")
s.SelfDeliverDelivering(savedOrderInfo.order, bill.CourierMobile)
}
} else if !s.isBillCandidate(order, bill) && bill.WaybillVendorID != order.VendorID {
// 发生这种情况的原因就是两个接单事件几乎同时到达(来不及取消),也算正常