From 63d7b3463704b19e3bc35f7578f93b922905768f Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 7 Jun 2022 14:16:48 +0800 Subject: [PATCH] =?UTF-8?q?jenkins:=20=E6=AF=8F=E6=97=A5=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E6=AC=A1=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/servers/battle/handler/dailyBattleHandler.ts | 3 +-- game-server/test/battle.test.ts | 1 - 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 dfafd37a2..8792cc2ff 100644 --- a/game-server/app/servers/battle/handler/dailyBattleHandler.ts +++ b/game-server/app/servers/battle/handler/dailyBattleHandler.ts @@ -64,8 +64,7 @@ export class DailyBattleHandler { return resResult(STATUS.TOKEN_ERR); } let roleId = session.get('roleId'); - await DailyRecordModel.increseBuyCount(roleId, type, 1); - await DailyRecordModel.increseDailyCount(roleId, type, -1); // 减次数,避免超出每日购买最大次数 + await DailyRecordModel.deleteAccount(roleId); return resResult(STATUS.SUCCESS); } } \ No newline at end of file diff --git a/game-server/test/battle.test.ts b/game-server/test/battle.test.ts index 074ce7871..298639e94 100644 --- a/game-server/test/battle.test.ts +++ b/game-server/test/battle.test.ts @@ -129,7 +129,6 @@ describe('战斗测试', function () { } } } - console.log('#####', dailyList, type, battleId) pinusClient.request('battle.dailyBattleHandler.debugResetNum', { magicWord: DEBUG_MAGIC_WORD, type }, (res) => { checkSuccessResponse(res, false); checkBattle(pinusClient, paramHeroes, battleId, 'daily', data => {