- don't call SelfDeliverDelievering when waybill delivering msg came.
This commit is contained in:
@@ -302,9 +302,7 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
|
|||||||
case model.WaybillStatusDelivering:
|
case model.WaybillStatusDelivering:
|
||||||
s.resetTimer(savedOrderInfo, scheduler.TimerStatusTypeWaybill, bill.Status, false)
|
s.resetTimer(savedOrderInfo, scheduler.TimerStatusTypeWaybill, bill.Status, false)
|
||||||
if s.isBillCandidate(order, bill) {
|
if s.isBillCandidate(order, bill) {
|
||||||
if order.VendorID != bill.WaybillVendorID && !isPending {
|
// do nothing
|
||||||
s.SelfDeliverDelievering(order)
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
// s.CancelWaybill(bill)
|
// s.CancelWaybill(bill)
|
||||||
globals.SugarLogger.Warnf("OnWaybillStatusChanged Delivering order(%d, %s) bill(%d, %s), bill:%v shouldn't got here", order.WaybillVendorID, order.VendorWaybillID, bill.WaybillVendorID, bill.VendorWaybillID, bill)
|
globals.SugarLogger.Warnf("OnWaybillStatusChanged Delivering order(%d, %s) bill(%d, %s), bill:%v shouldn't got here", order.WaybillVendorID, order.VendorWaybillID, bill.WaybillVendorID, bill.VendorWaybillID, bill)
|
||||||
|
|||||||
Reference in New Issue
Block a user