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 {