From 60dc6407ee2c872411cb84fb078663c9e743e553 Mon Sep 17 00:00:00 2001 From: gazebo Date: Mon, 1 Apr 2019 23:33:05 +0800 Subject: [PATCH] =?UTF-8?q?-=20=E6=94=B9=E5=9C=A8=E6=8E=A5=E5=8D=95?= =?UTF-8?q?=E6=97=B6=E6=8E=A8=E9=80=81=E6=96=B0=E8=AE=A2=E5=8D=95=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxcallback/scheduler/defsch/defsch.go | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/business/jxcallback/scheduler/defsch/defsch.go b/business/jxcallback/scheduler/defsch/defsch.go index 5f956a101..d7d64b892 100644 --- a/business/jxcallback/scheduler/defsch/defsch.go +++ b/business/jxcallback/scheduler/defsch/defsch.go @@ -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 }