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;