- don't remove waybill when cancel it successfully.
This commit is contained in:
@@ -550,9 +550,10 @@ func (s *DefScheduler) cancelOtherWaybills(savedOrderInfo *WatchOrderInfo, bill2
|
||||
}
|
||||
}
|
||||
if len(toBeDeleted) > 0 {
|
||||
for _, v := range toBeDeleted {
|
||||
s.removeWaybillFromMap(savedOrderInfo, v.WaybillVendorID)
|
||||
}
|
||||
// todo 这里为什么要删除运单,应该只需要在运单完成,取消或失败时才删除
|
||||
// for _, v := range toBeDeleted {
|
||||
// s.removeWaybillFromMap(savedOrderInfo, v.WaybillVendorID)
|
||||
// }
|
||||
} else {
|
||||
globals.SugarLogger.Debugf("cancelOtherWaybills, orderID:%s, bill:%v cancel 0 bills", savedOrderInfo.order.VendorOrderID, bill2Keep)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user