From 274783ad25a2642aaa4dcc520e7c38e7bbfcd45a Mon Sep 17 00:00:00 2001 From: luying Date: Mon, 9 May 2022 18:50:27 +0800 Subject: [PATCH] =?UTF-8?q?pvp=EF=BC=9A=E4=BF=AE=E5=A4=8D=E5=8F=AF?= =?UTF-8?q?=E8=83=BD=E4=BC=9A=E5=8C=B9=E9=85=8D=E5=88=B0=E8=87=AA=E5=B7=B1?= =?UTF-8?q?=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/pvpService.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/game-server/app/services/pvpService.ts b/game-server/app/services/pvpService.ts index 909c5091b..76d3e159d 100644 --- a/game-server/app/services/pvpService.ts +++ b/game-server/app/services/pvpService.ts @@ -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];