This commit is contained in:
邹宗楠
2022-06-16 10:32:25 +08:00
parent 0c1b804397
commit ee38541663

View File

@@ -675,7 +675,7 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
s.notify3rdPartyWaybill(order, bill, isBillAlreadyCandidate)
}
// 订单在三方配送中,转自送
if order.Status >= model.OrderStatusDelivering && order.VendorOrderID != order.VendorWaybillID {
if order.Status >= model.OrderStatusDelivering && order.VendorOrderID != order.VendorWaybillID && order.VendorWaybillID != "" {
s.swtich2SelfDeliverWithRetry(savedOrderInfo, bill, switch2SelfDeliverRetryCount, switch2SelfDeliverRetryGap)
s.SelfDeliverDelivering(order, "自配送中")
}