修改游戏结果统计数据的字段名

This commit is contained in:
zhl 2021-01-14 11:55:24 +08:00
parent 3d05eb8fc6
commit 6901d22c52
2 changed files with 2 additions and 4 deletions

View File

@ -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";

View File

@ -98,7 +98,7 @@ export class GameResultCommand extends Command<CardGameState, {}> {
val: val[1]
})
}
resultData[statics] = statics;
resultData['statics'] = statics;
let self = this;
this.room.bGameResult(resultData);
this.state.updateGameState(GameStateConst.STATE_GAME_OVER);