From 27e5e83322c618cd125a334d46734d032ae1ae1b Mon Sep 17 00:00:00 2001 From: meixiongfeng <766881921@qq.com> Date: Mon, 24 Jul 2023 15:17:37 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=80=9A=E5=A5=96=E5=8A=B1=E6=8E=A8?= =?UTF-8?q?=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 | 8 ++++---- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/modules/hunting/api_challengeover.go b/modules/hunting/api_challengeover.go index 989ba2694..df348bb2a 100644 --- a/modules/hunting/api_challengeover.go +++ b/modules/hunting/api_challengeover.go @@ -99,9 +99,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 - } + res = append(res, cfgHunting.Firstprize...) + // if errdata = this.module.DispenseRes(session, cfgHunting.Firstprize, true); errdata != nil { + // return + // } 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 6c8b23a5a..2c382d37a 100644 --- a/modules/viking/api_challengeover.go +++ b/modules/viking/api_challengeover.go @@ -98,10 +98,10 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal key := strconv.Itoa(int(req.BossId)) + "_" + strconv.Itoa(int(req.Difficulty)) if viking.BossTime[key] == 0 { // 新关卡挑战通过 发放首通奖励 - - if errdata = this.module.DispenseRes(session, vikingCfg.Firstprize, true); errdata != nil { - return - } + res = append(res, vikingCfg.Firstprize...) + // if errdata = this.module.DispenseAtno(session, vikingCfg.Firstprize, true); errdata != nil { + // return + // } } if viking.BossTime[key] == 0 || viking.BossTime[key] > req.Report.Costtime {