首通奖励推送
This commit is contained in:
parent
d8ca98f2e2
commit
27e5e83322
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user