- 有订单消息错序,先收到接单消息,再收到新订单消息,导致接单TIMER不动作,这里补一下
This commit is contained in:
@@ -229,6 +229,13 @@ func (s *DefScheduler) OnOrderNew(order *model.GoodsOrder, isPending bool) (err
|
|||||||
}
|
}
|
||||||
if order.Status >= model.OrderStatusNew {
|
if order.Status >= model.OrderStatusNew {
|
||||||
s.resetTimer(savedOrderInfo, nil, isPending)
|
s.resetTimer(savedOrderInfo, nil, isPending)
|
||||||
|
if !isPending && order.Status >= model.OrderStatusAccepted { // 有订单消息错序,先收到接单消息,再收到新订单消息,导致接单TIMER不动作,这里补一下
|
||||||
|
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order)
|
||||||
|
utils.CallFuncAsync(func() {
|
||||||
|
weixinmsg.NotifyNewOrder(order)
|
||||||
|
})
|
||||||
|
msghub.OnNewOrder(order)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user