字段完善

This commit is contained in:
kron
2025-06-18 13:58:44 +08:00
parent 256efcb04b
commit 38301f2f68
2 changed files with 3 additions and 1 deletions

View File

@@ -142,6 +142,7 @@ export const getGameAPI = async (battleId) => {
const { battleStats = {}, playerStats = {} } = result;
const data = {
mode: battleStats.mode,
gameMode: battleStats.gameMode,
};
if (battleStats.mode === 1) {
data.winner = battleStats.winner;