From 8b20ec9f53578cbb022d3299bed35ffc40bea67f Mon Sep 17 00:00:00 2001 From: wh_zcy Date: Fri, 18 Nov 2022 20:37:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=96=E7=95=8C=E4=BB=BB=E5=8A=A1bingo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/worldtask/module.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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{