🐞 fix(gvg): 遗迹排行榜奖励匹配问题

This commit is contained in:
luying
2023-03-22 20:07:27 +08:00
parent f289856722
commit 254c732068

View File

@@ -1210,7 +1210,7 @@ export function getGVGVestigeLeagueRank(myLeagueRank: number) {
for(let dic of gameData.gvgVestigeLeagueRank) {
lastRank = dic;
let { rankMin, rankMax } = dic;
if(rankMin <= myLeagueRank && (rankMax >= myLeagueRank || rankMax == 0)) {
if(rankMin <= myLeagueRank && (rankMax > myLeagueRank || rankMax == 0)) {
return dic;
}
}
@@ -1222,7 +1222,7 @@ export function getGVGVestigePlayerRank(myRank: number) {
for(let dic of gameData.gvgVestigePlayerRank) {
lastRank = dic;
let { rankMin, rankMax } = dic;
if(rankMin <= myRank && (rankMax >= myRank || rankMax == 0)) {
if(rankMin <= myRank && (rankMax > myRank || rankMax == 0)) {
return dic;
}
}