From 6901d22c52ce1d09711478e526a13d8ca4f23d07 Mon Sep 17 00:00:00 2001 From: zhl Date: Thu, 14 Jan 2021 11:55:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=B8=E6=88=8F=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E7=BB=9F=E8=AE=A1=E6=95=B0=E6=8D=AE=E7=9A=84=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/rooms/GeneralRoom.ts | 4 +--- src/rooms/commands/GameResultCommand.ts | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/rooms/GeneralRoom.ts b/src/rooms/GeneralRoom.ts index a372818..6b47f8b 100644 --- a/src/rooms/GeneralRoom.ts +++ b/src/rooms/GeneralRoom.ts @@ -1,4 +1,4 @@ -import {Client, generateId, Room} from "colyseus"; +import {Client, Room} from "colyseus"; import {CardGameState} from "./schema/CardGameState"; import {OnJoinCommand} from "./commands/OnJoinCommand"; import {PlayReadyCommand} from "./commands/PlayReadyCommand"; @@ -19,8 +19,6 @@ import {GMCommand} from "./commands/GMCommand"; import {GameStateConst} from "../constants/GameStateConst"; import {GameRestartCommand} from "./commands/GameRestartCommand"; import {RobotClient} from "../robot/RobotClient"; -import axios from 'axios'; -import {wait} from "../decorators/cfg"; import {ChangePetCommand} from "./commands/ChangePetCommand"; import {createRobot} from "../common/WebApi"; diff --git a/src/rooms/commands/GameResultCommand.ts b/src/rooms/commands/GameResultCommand.ts index ed8694b..7eed480 100644 --- a/src/rooms/commands/GameResultCommand.ts +++ b/src/rooms/commands/GameResultCommand.ts @@ -98,7 +98,7 @@ export class GameResultCommand extends Command { val: val[1] }) } - resultData[statics] = statics; + resultData['statics'] = statics; let self = this; this.room.bGameResult(resultData); this.state.updateGameState(GameStateConst.STATE_GAME_OVER);