数数:修复体力在其他无关项也上报的问题

This commit is contained in:
luying
2022-06-07 11:40:09 +08:00
parent 0e3b68eb34
commit ecbe93856c

View File

@@ -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);