From c5b6b1669c52acd1a0e91a2267e9395fb7617de1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sun, 22 May 2022 15:53:03 +0800 Subject: [PATCH] 1 --- webapp/services/BattleDataService.php | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/webapp/services/BattleDataService.php b/webapp/services/BattleDataService.php index 64ead0e3..8dbbdd37 100644 --- a/webapp/services/BattleDataService.php +++ b/webapp/services/BattleDataService.php @@ -47,11 +47,11 @@ class BattleDataService extends BaseService { $heroDb = Hero::toDto($row); error_log(json_encode($_REQUEST)); error_log('updateBattleData1'); - if (!$this->decCost($heroDb)) { + /*if (!$this->decCost($heroDb)) { return; - } + }*/ $this->rankActivityService->updateBattleData(); - $this->rewardGold($heroDb); + //$this->rewardGold($heroDb); error_log('updateBattleData2'); $this->currSeasonMeta = mt\Season::getCurrentSeason(); if (!$this->currSeasonMeta) { @@ -322,7 +322,6 @@ class BattleDataService extends BaseService { private function decCost($heroDb) { - return true; $costTili = mt\Parameter::getVal('cost_fatigue', 0); if ($heroDb['hero_tili'] < $costTili) { return false;