排行数据
This commit is contained in:
parent
f94b9d6117
commit
5917f78e37
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user