From 39e2e320be5433d08a980a2712e2bed1c2710dd9 Mon Sep 17 00:00:00 2001 From: zhl Date: Wed, 10 Mar 2021 18:09:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E6=AD=BB=E4=BA=A1=E5=90=8E?= =?UTF-8?q?=E7=A6=BB=E5=BC=80=E6=B8=B8=E6=88=8F,=20=E6=B2=A1=E6=9C=89?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E4=B8=8A=E6=8A=A5=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/GeneralRoom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/rooms/GeneralRoom.ts b/src/rooms/GeneralRoom.ts index a67258f..7acb2fe 100644 --- a/src/rooms/GeneralRoom.ts +++ b/src/rooms/GeneralRoom.ts @@ -194,7 +194,7 @@ export class GeneralRoom extends Room { try { // 20210310 添加, 如果该玩家已死亡, 则上报下, 清除redis中的锁定键 if (this.state.mode == 1 && !player.robot && player.state == PlayerStateConst.PLAYER_DEAD) { - await leftGame(player.id, this.roomId) + await leftGame(player.accountId, this.roomId) } else if (consented) { throw new Error('consented leave') } else {