- 改在接单时推送新订单消息

This commit is contained in:
gazebo
2019-04-01 23:33:05 +08:00
parent 60de9f64bd
commit 60dc6407ee

View File

@@ -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
}