推送清理已完成的任务

This commit is contained in:
wh_zcy 2023-06-09 10:53:21 +08:00
parent 73ced03a17
commit 9bb0d46e95

View File

@ -222,6 +222,7 @@ func (this *ModelWorldtask) taskFinishPush(session comm.IUserSession, userTask *
// 章节完成
if _, ok := userTask.Chapters[curTaskConf.Group]; !ok {
delete(userTask.CurrentTasks, curTaskConf.Group)
delete(nextTask, curTaskConf.Group)
if userTask.Chapters == nil {
userTask.Chapters = make(map[int32]int32)
}