1
This commit is contained in:
parent
f8b7a902a0
commit
c5b6b1669c
@ -47,11 +47,11 @@ class BattleDataService extends BaseService {
|
|||||||
$heroDb = Hero::toDto($row);
|
$heroDb = Hero::toDto($row);
|
||||||
error_log(json_encode($_REQUEST));
|
error_log(json_encode($_REQUEST));
|
||||||
error_log('updateBattleData1');
|
error_log('updateBattleData1');
|
||||||
if (!$this->decCost($heroDb)) {
|
/*if (!$this->decCost($heroDb)) {
|
||||||
return;
|
return;
|
||||||
}
|
}*/
|
||||||
$this->rankActivityService->updateBattleData();
|
$this->rankActivityService->updateBattleData();
|
||||||
$this->rewardGold($heroDb);
|
//$this->rewardGold($heroDb);
|
||||||
error_log('updateBattleData2');
|
error_log('updateBattleData2');
|
||||||
$this->currSeasonMeta = mt\Season::getCurrentSeason();
|
$this->currSeasonMeta = mt\Season::getCurrentSeason();
|
||||||
if (!$this->currSeasonMeta) {
|
if (!$this->currSeasonMeta) {
|
||||||
@ -322,7 +322,6 @@ class BattleDataService extends BaseService {
|
|||||||
|
|
||||||
private function decCost($heroDb)
|
private function decCost($heroDb)
|
||||||
{
|
{
|
||||||
return true;
|
|
||||||
$costTili = mt\Parameter::getVal('cost_fatigue', 0);
|
$costTili = mt\Parameter::getVal('cost_fatigue', 0);
|
||||||
if ($heroDb['hero_tili'] < $costTili) {
|
if ($heroDb['hero_tili'] < $costTili) {
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user