diff --git a/game-server/app/servers/battle/handler/dailyBattleHandler.ts b/game-server/app/servers/battle/handler/dailyBattleHandler.ts index 0a6af1bbb..357365fd8 100644 --- a/game-server/app/servers/battle/handler/dailyBattleHandler.ts +++ b/game-server/app/servers/battle/handler/dailyBattleHandler.ts @@ -53,7 +53,6 @@ export class DailyBattleHandler { } } let checkDailyResult = await getDailyNum(refreshResult, timesPerDay, timesCanBuy); - checkDailyResult['count'] = checkDailyResult.battleCount; result.push({ type, name, ...checkDailyResult, wars @@ -96,7 +95,6 @@ export class DailyBattleHandler { let newDailyRecord = await DailyRecordModel.increseBuyCount(roleId, type, count); let checkDailyResult = await getDailyNum(newDailyRecord, timesPerDay, timesCanBuy); - checkDailyResult['count'] = checkDailyResult.battleCount; return resResult(STATUS.SUCCESS, { type, ...checkDailyResult, buyCost}); } } \ No newline at end of file diff --git a/game-server/app/services/dailyBattleService.ts b/game-server/app/services/dailyBattleService.ts index 53fb5cfdc..3485e44f7 100644 --- a/game-server/app/services/dailyBattleService.ts +++ b/game-server/app/services/dailyBattleService.ts @@ -72,5 +72,5 @@ export async function getDailyNum(dailyRecord: DailyRecord, timesPerDay?: number if(vLv > 0) { timesCanBuy += 0; // 暂留,用于处理vip等级增加最大购买次数 } - return {battleCount: timesPerDay - count + buyCount, buyCount: timesCanBuy - buyCount} + return {count: timesPerDay - count + buyCount, buyCount: timesCanBuy - buyCount} } \ No newline at end of file