From ecbe93856cfa8be64ee1be5b98402cc84d322454 Mon Sep 17 00:00:00 2001 From: luying Date: Tue, 7 Jun 2022 11:40:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=95=B0=E6=95=B0=EF=BC=9A=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E4=BD=93=E5=8A=9B=E5=9C=A8=E5=85=B6=E4=BB=96=E6=97=A0=E5=85=B3?= =?UTF-8?q?=E9=A1=B9=E4=B9=9F=E4=B8=8A=E6=8A=A5=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/actionPointService.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/game-server/app/services/actionPointService.ts b/game-server/app/services/actionPointService.ts index 974722722..d532832c4 100644 --- a/game-server/app/services/actionPointService.ts +++ b/game-server/app/services/actionPointService.ts @@ -91,7 +91,7 @@ export async function setAp(serverId: number, roleId: string, ip: string, lv: nu if (changeAp < 0) { await checkTask(serverId, roleId, sid, TASK_TYPE.BATTLE_COST_AP, { count: -changeAp }); // reportTAEvent(roleId, TA_EVENT.AP_CONSUME, { change_count: -1 * changeAp, change_after: ap, change_reason: reason }, ip) - } else { + } else if(changeAp > 0){ reportTAEvent(roleId, TA_EVENT.AP_GET, { change_count: changeAp, change_after: ap, change_reason: reason }, ip) } let apJson = await getApWithDataAp(roleId, ip, lv, dataAp);