- min timeout scattered.
- fix LoadPendingOrders bug when there is no waybill.
This commit is contained in:
@@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user