世界任务bingo

This commit is contained in:
wh_zcy 2022-11-18 20:37:40 +08:00
parent 8329f8c19c
commit 8b20ec9f53

View File

@ -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{