版署同步 首通奖励推送

This commit is contained in:
meixiongfeng 2023-07-24 15:18:53 +08:00
parent 13cc78e86d
commit 2b493cdbdf
2 changed files with 8 additions and 6 deletions

View File

@ -96,9 +96,10 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.HuntingCha
//hunting.BossTime[key] = req.Report.Costtime //hunting.BossTime[key] = req.Report.Costtime
//mapData["bossTime"] = hunting.BossTime //mapData["bossTime"] = hunting.BossTime
if errdata = this.module.DispenseRes(session, cfgHunting.Firstprize, true); errdata != nil { // if errdata = this.module.DispenseRes(session, cfgHunting.Firstprize, true); errdata != nil {
return // return
} // }
res = append(res, cfgHunting.Firstprize...)
for _, v := range cfgHunting.Firstprize { for _, v := range cfgHunting.Firstprize {
if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil { if _conf, err := this.module.configure.GetItemConfigureData(v.T); err == nil {
if _conf.Usetype == comm.UseType8 { if _conf.Usetype == comm.UseType8 {

View File

@ -100,9 +100,10 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.VikingChal
if viking.BossTime[key] == 0 { // 新关卡挑战通过 发放首通奖励 if viking.BossTime[key] == 0 { // 新关卡挑战通过 发放首通奖励
//viking.BossTime[key] = req.Report.Costtime //viking.BossTime[key] = req.Report.Costtime
//mapData["bossTime"] = viking.BossTime // 更新时间 //mapData["bossTime"] = viking.BossTime // 更新时间
if errdata = this.module.DispenseRes(session, vikingCfg.Firstprize, true); errdata != nil { // if errdata = this.module.DispenseRes(session, vikingCfg.Firstprize, true); errdata != nil {
return // return
} // }
res = append(res, vikingCfg.Firstprize...)
} }
if viking.BossTime[key] == 0 || viking.BossTime[key] > req.Report.Costtime { if viking.BossTime[key] == 0 || viking.BossTime[key] > req.Report.Costtime {