- 改在接单时推送新订单消息
This commit is contained in:
@@ -152,6 +152,9 @@ func init() {
|
|||||||
}
|
}
|
||||||
if isAcceptIt {
|
if isAcceptIt {
|
||||||
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order)
|
netprinter.PrintOrderByOrder(jxcontext.AdminCtx, order)
|
||||||
|
utils.CallFuncAsync(func() {
|
||||||
|
weixinmsg.NotifyNewOrder(order)
|
||||||
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
@@ -224,11 +227,6 @@ 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 {
|
|
||||||
utils.CallFuncAsync(func() {
|
|
||||||
weixinmsg.NotifyNewOrder(order)
|
|
||||||
})
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user