SendStoreMessage数量少时任务不管理

This commit is contained in:
gazebo
2020-02-07 20:15:19 +08:00
parent 464399e145
commit c42bb64998

View File

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