pvp:修复可能会匹配到自己的问题

This commit is contained in:
luying
2022-05-09 18:50:27 +08:00
parent d0f25b82ef
commit 274783ad25

View File

@@ -146,6 +146,7 @@ export async function matchPlayerByRank(seasonNum: number, chosenOpps: string[],
}
}
}
if(oppRank <= 0) return null;
let result = await r.getUserByRank(oppRank);
if (result.length <= 0) return null;
oppRoleId = result[0];