From 8cf133b20065e87d7c1c9b10484aabb8db34950f Mon Sep 17 00:00:00 2001 From: zhl Date: Fri, 14 May 2021 12:42:38 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=80=E4=B8=AA=E7=94=B1?= =?UTF-8?q?=E4=BA=8E=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E7=9A=84=E5=A4=9A=E4=BA=BA=E6=A8=A1=E5=BC=8F?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/services/GameLogic.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/services/GameLogic.ts b/src/services/GameLogic.ts index 5fbbc60..44d2c65 100644 --- a/src/services/GameLogic.ts +++ b/src/services/GameLogic.ts @@ -80,7 +80,7 @@ export async function startGame(roomId: string, sessionId: string) { export async function sendOneQuestion(history: any) { const roomId = history.room new Schedule().stopSchedule(history.scheduleKey) - if (history.current >= history.questions.length) { + if (history.current >= history.questions.size) { console.log('match over') history.status = 9 await history.save()