1
This commit is contained in:
parent
651a8997f1
commit
9b125dbc2e
@ -4,4 +4,8 @@ namespace services;
|
|||||||
|
|
||||||
class BaseService {
|
class BaseService {
|
||||||
|
|
||||||
|
function __construct()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -31,7 +31,12 @@ use models\Gun;
|
|||||||
class BattleDataService extends BaseService {
|
class BattleDataService extends BaseService {
|
||||||
|
|
||||||
private $seasonDb = array();
|
private $seasonDb = array();
|
||||||
private $rankActivityService = new services\RankActivityService();
|
|
||||||
|
function __construct()
|
||||||
|
{
|
||||||
|
parent::__construct();
|
||||||
|
$this->rankActivityService = new RankActivityService();
|
||||||
|
}
|
||||||
|
|
||||||
public function updateBattleData()
|
public function updateBattleData()
|
||||||
{
|
{
|
||||||
@ -45,6 +50,7 @@ class BattleDataService extends BaseService {
|
|||||||
if (!$this->decCost($heroDb)) {
|
if (!$this->decCost($heroDb)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
$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();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user