diff --git a/modules/worldtask/module.go b/modules/worldtask/module.go index aaae7885d..0b8c58f47 100644 --- a/modules/worldtask/module.go +++ b/modules/worldtask/module.go @@ -163,6 +163,7 @@ func (this *Worldtask) BingoJumpTask(session comm.IUserSession, groupId, taskId if err != nil { return err } + mytask.Uid = uid // 更新数据 update := map[string]interface{}{} @@ -181,15 +182,14 @@ func (this *Worldtask) BingoJumpTask(session comm.IUserSession, groupId, taskId if taskConf.Ontxe != 0 && taskConf.IdAfter != 0 { for _, v := range this.worldtaskConf.GetDataList() { if v.Group == groupId && v.Key <= taskId { - mytask.LastTaskIds[groupId] = &pb.Worldtask{ + wt := &pb.Worldtask{ TaskId: v.Key, TaskType: v.Des, } - mytask.TaskList = append(mytask.TaskList, &pb.Worldtask{ - TaskId: v.Key, - }) + mytask.LastTaskIds[groupId] = wt + mytask.TaskList = append(mytask.TaskList, wt) } - break + } } else { wt := &pb.Worldtask{