fix 修复重复刷新对手

This commit is contained in:
luying
2021-01-15 16:30:37 +08:00
parent a3e4149b41
commit 8a0a8bbe4f

View File

@@ -112,7 +112,7 @@ export async function matchPlayerByRank(oppPlayers: OppPlayers[], mapWarJson: Di
console.log('matchPlayerByRank', JSON.stringify(oppPlayers))
let ridRanks = new Array<number>(); // 已经被使用了的排名
for(let { roleId: curRoleId } of oppPlayers) {
let rankLv = await getMyRank(REDIS_KEY.PVP_RANK, 0, curRoleId);
let rankLv = await getMyRank(REDIS_KEY.PVP_RANK, 0, robotIdComBack(curRoleId));
ridRanks.push(rankLv);
}
let myRank = await getMyRank(REDIS_KEY.PVP_RANK, 0, roleId);