排行数据

This commit is contained in:
meixiongfeng 2022-12-19 20:30:41 +08:00
parent f94b9d6117
commit 5917f78e37

View File

@ -76,9 +76,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.EnchantCha
mapData["recoveryTime"] = enchant.RecoveryTime mapData["recoveryTime"] = enchant.RecoveryTime
} }
if bWin { if bWin {
this.module.CheckRank(session.GetUserId(), req.BossType, enchant, req.Report, 0) this.module.CheckRank(session.GetUserId(), req.BossType, enchant, req.Report, req.Score)
} }
enchant.Boss[req.BossType] = score // 获得的积分 enchant.Boss[req.BossType] = req.Score // 获得的积分
// 发放通关随机奖励 // 发放通关随机奖励
for _, v := range cfgEnchant { for _, v := range cfgEnchant {
if score >= v.ScoreLow && score <= v.ScoreUp { if score >= v.ScoreLow && score <= v.ScoreUp {
@ -88,7 +88,6 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.EnchantCha
return return
} }
} }
} }
} }