SendStoreMessage数量少时任务不管理
This commit is contained in:
@@ -709,7 +709,7 @@ func SendStoreMessage(ctx *jxcontext.Context, title, content string, storeIDs []
|
|||||||
_, err = dao.UpdateEntity(db, msgStatus)
|
_, err = dao.UpdateEntity(db, msgStatus)
|
||||||
return nil, err
|
return nil, err
|
||||||
}, msgStatusList)
|
}, msgStatusList)
|
||||||
tasksch.ManageTask(rootTask).Run()
|
tasksch.HandleTask(rootTask, nil, len(msgStatusList) > 5).Run()
|
||||||
|
|
||||||
if !isAsync {
|
if !isAsync {
|
||||||
_, err = rootTask.GetResult(0)
|
_, err = rootTask.GetResult(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user