diff --git a/modules/enchant/api_challengeover.go b/modules/enchant/api_challengeover.go index 5716fac18..3bafdab5b 100644 --- a/modules/enchant/api_challengeover.go +++ b/modules/enchant/api_challengeover.go @@ -76,9 +76,9 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.EnchantCha mapData["recoveryTime"] = enchant.RecoveryTime } 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 { if score >= v.ScoreLow && score <= v.ScoreUp { @@ -88,7 +88,6 @@ func (this *apiComp) ChallengeOver(session comm.IUserSession, req *pb.EnchantCha return } } - } }