数数:修复体力在其他无关项也上报的问题
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user