From 2b493cdbdfae4d3b9f7230b6cf88c8e0283b3f0c Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 24 Jul 2023 15:18:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E7=BD=B2=E5=90=8C=E6=AD=A5=20?= =?UTF-8?q?=E9=A6=96=E9=80=9A=E5=A5=96=E5=8A=B1=E6=8E=A8=E9=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modules/hunting/api_challengeover.go | 7 ++++--- modules/viking/api_challengeover.go | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/modules/hunting/api_challengeover.go b/modules/hunting/api_challengeover.go index a95e230a2..3347e520e 100644 --- a/modules/hunting/api_challengeover.go +++ b/modules/hunting/api_challengeover.go @@ -96,9 +96,10 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha //hunting.BossTime[key] = req.Report.Costtime //mapData["bossTime"] = hunting.BossTime - if errdata = this.module.DispenseRes(session, cfgHunting.Firstprize, true); errdata != nil { - return - } + // if errdata = this.module.DispenseRes(session, cfgHunting.Firstprize, true); errdata != nil { + // return + // } + 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 { diff --git a/modules/viking/api_challengeover.go b/modules/viking/api_challengeover.go index 90f482084..2260774d4 100644 --- a/modules/viking/api_challengeover.go +++ b/modules/viking/api_challengeover.go @@ -100,9 +100,10 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal if viking.BossTime[key] == 0 { // 新关卡挑战通过 发放首通奖励 //viking.BossTime[key] = req.Report.Costtime //mapData["bossTime"] = viking.BossTime // 更新时间 - if errdata = this.module.DispenseRes(session, vikingCfg.Firstprize, true); errdata != nil { - return - } + // if errdata = this.module.DispenseRes(session, vikingCfg.Firstprize, true); errdata != nil { + // return + // } + res = append(res, vikingCfg.Firstprize...) } if viking.BossTime[key] == 0 || viking.BossTime[key] > req.Report.Costtime {