- 改在接单时推送新订单消息
This commit is contained in:
@@ -152,6 +152,9 @@ func init() {
|
||||
}
|
||||
if isAcceptIt {
|
||||
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order)
|
||||
utils.CallFuncAsync(func() {
|
||||
weixinmsg.NotifyNewOrder(order)
|
||||
})
|
||||
}
|
||||
}
|
||||
return err
|
||||
@@ -224,11 +227,6 @@ func (s *DefScheduler) OnOrderNew(order *model.GoodsOrder, isPending bool) (err
|
||||
}
|
||||
if order.Status >= model.OrderStatusNew {
|
||||
s.resetTimer(savedOrderInfo, nil, isPending)
|
||||
if !isPending {
|
||||
utils.CallFuncAsync(func() {
|
||||
weixinmsg.NotifyNewOrder(order)
|
||||
})
|
||||
}
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user