- reorganize purchase platform interface, split Swith2SelfDeliver and SelfDelivery.

This commit is contained in:
gazebo
2018-08-04 23:08:16 +08:00
parent 9d40bbc85b
commit afe31e0db7
4 changed files with 46 additions and 7 deletions

View File

@@ -343,7 +343,11 @@ func (s *DefScheduler) OnWaybillStatusChanged(bill *model.Waybill, isPending boo
s.resetTimer(savedOrderInfo, bill, isPending)
s.removeWaybillFromMap(savedOrderInfo, bill)
if order.VendorID != bill.WaybillVendorID && !isPending {
s.SelfDeliverDelievered(order)
if savedOrderInfo.storeDeliveryType == scheduler.StoreDeliveryTypeByStore {
s.SelfDeliverDelievered(order)
} else {
s.Swtich2SelfDelivered(order)
}
}
if !s.isBillCandidate(order, bill) {
// 一般只会消息乱序才会到这里,即新订单消息在运单接单消息后到达