From 552534b585d88b4355a3f4fb7354d3d43c409a6b Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 30 Dec 2020 14:55:50 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E6=AF=8F=E6=97=A5=E5=89=A9=E4=BD=99?= =?UTF-8?q?=E6=8C=91=E6=88=98=E6=AC=A1=E6=95=B0=E4=B8=BAcount?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/dailyBattleHandler.ts | 2 -- game-server/app/services/dailyBattleService.ts | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) 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