From fdcd3ab3f908905b15c143651a01b0863a4af9ef Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Tue, 2 Jan 2024 14:09:21 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E7=BB=9F=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hunting/api_challengeover.go | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/modules/hunting/api_challengeover.go b/modules/hunting/api_challengeover.go index ec4345eea..d82391c97 100644 --- a/modules/hunting/api_challengeover.go +++ b/modules/hunting/api_challengeover.go @@ -100,9 +100,11 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha res = append(res, cfgHunting.Firstprize...) for _, v := range cfgHunting.Firstprize { - if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil { - if _conf.Usetype == comm.UseType8 { - tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N)) + if v.A == "item" { + if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil { + if _conf.Usetype == comm.UseType8 { + tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N)) + } } } } @@ -204,16 +206,15 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha }() tasks = append(tasks, comm.GetBuriedParam(comm.Rtype80, 1, req.BossType, req.Difficulty)) // 随机任务统计 - // this.module.ModuleRtask.SendToRtask(session, comm.Rtype81, req.Difficulty, req.BossType) - // this.module.ModuleRtask.SendToRtask(session, comm.Rtype82, req.BossType) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype81, req.Difficulty, req.BossType)) tasks = append(tasks, comm.GetBuriedParam(comm.Rtype82, 1, req.BossType)) // 狩猎副本掉落觉醒材料 for _, v := range reward { - if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil { - if _conf.Usetype == comm.UseType8 { - // this.module.ModuleRtask.SendToRtask(session, comm.Rtype154, v.N) - tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N)) + if v.A == "item" { + if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil { + if _conf.Usetype == comm.UseType8 { + tasks = append(tasks, comm.GetBuriedParam(comm.Rtype154, v.N)) + } } } }