推送清理已完成的任务
This commit is contained in:
parent
73ced03a17
commit
9bb0d46e95
@ -222,6 +222,7 @@ func (this *ModelWorldtask) taskFinishPush(session comm.IUserSession, userTask *
|
|||||||
// 章节完成
|
// 章节完成
|
||||||
if _, ok := userTask.Chapters[curTaskConf.Group]; !ok {
|
if _, ok := userTask.Chapters[curTaskConf.Group]; !ok {
|
||||||
delete(userTask.CurrentTasks, curTaskConf.Group)
|
delete(userTask.CurrentTasks, curTaskConf.Group)
|
||||||
|
delete(nextTask, curTaskConf.Group)
|
||||||
if userTask.Chapters == nil {
|
if userTask.Chapters == nil {
|
||||||
userTask.Chapters = make(map[int32]int32)
|
userTask.Chapters = make(map[int32]int32)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user