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 {