From c42bb64998b07e180f740982c3e1004b1908818c Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 7 Feb 2020 20:15:19 +0800 Subject: [PATCH] =?UTF-8?q?SendStoreMessage=E6=95=B0=E9=87=8F=E5=B0=91?= =?UTF-8?q?=E6=97=B6=E4=BB=BB=E5=8A=A1=E4=B8=8D=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- business/jxutils/weixinmsg/weixinmsg.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/business/jxutils/weixinmsg/weixinmsg.go b/business/jxutils/weixinmsg/weixinmsg.go index 57453a2f8..5123629ac 100644 --- a/business/jxutils/weixinmsg/weixinmsg.go +++ b/business/jxutils/weixinmsg/weixinmsg.go @@ -709,7 +709,7 @@ func SendStoreMessage(ctx *jxcontext.Context, title, content string, storeIDs [] _, err = dao.UpdateEntity(db, msgStatus) return nil, err }, msgStatusList) - tasksch.ManageTask(rootTask).Run() + tasksch.HandleTask(rootTask, nil, len(msgStatusList) > 5).Run() if !isAsync { _, err = rootTask.GetResult(0)