- min timeout scattered.

- fix LoadPendingOrders bug when there is no waybill.
This commit is contained in:
gazebo
2018-07-22 01:06:34 +08:00
parent 77c1dd07b5
commit ae6198220c
4 changed files with 11 additions and 5 deletions

View File

@@ -140,7 +140,7 @@ func LoadPendingOrders() {
scheduler.CurrentScheduler.OnWaybillStatusChanged(&bill2)
}, bill.VendorOrderID)
}
if order.Status > model.OrderStatusNew {
if order.Status > model.OrderStatusNew && !isNoNewSent {
isNoNewSent = true
order2 := *order
routinePool.CallFunAsync(func() {
@@ -148,5 +148,11 @@ func LoadPendingOrders() {
}, order.VendorOrderID)
}
}
if order.Status > model.OrderStatusNew && !isNoNewSent {
order2 := *order
routinePool.CallFunAsync(func() {
scheduler.CurrentScheduler.OnOrderStatusChanged(model.Order2Status(&order2))
}, order.VendorOrderID)
}
}
}