1
This commit is contained in:
parent
f608e1ffb5
commit
b2b6d23100
@ -6,6 +6,7 @@ require_once('mt/Season.php');
|
||||
|
||||
require_once('models/Season.php');
|
||||
|
||||
require_once('services/AwardService.php');
|
||||
require_once('services/PropertyChgService.php');
|
||||
require_once('services/SeasonService.php');
|
||||
|
||||
@ -16,6 +17,7 @@ use models\Season;
|
||||
class SeasonController extends BaseAuthedController {
|
||||
|
||||
private $propertyChgService = null;
|
||||
private $awardService = null;
|
||||
private $userInfo = null;
|
||||
private $seasonService = null;
|
||||
private $currSeasonMeta = null;
|
||||
@ -30,6 +32,7 @@ class SeasonController extends BaseAuthedController {
|
||||
die();
|
||||
}
|
||||
$this->propertyChgService = new services\PropertyChgService();
|
||||
$this->awardService = new services\AwardService();
|
||||
$this->userInfo = $this->_safeGetOrmUserInfo();
|
||||
$this->seasonService = new services\SeasonService();
|
||||
if (!$this->seasonService->checkSeason($this->userInfo)) {
|
||||
@ -51,7 +54,6 @@ class SeasonController extends BaseAuthedController {
|
||||
{
|
||||
$rankMeta = mt\Rank::get($this->userInfo['rank']);
|
||||
$this->_rspData(array(
|
||||
array(
|
||||
'info' => array(
|
||||
'season_id' => $this->currSeasonMeta['id'],
|
||||
'rank' => $this->userInfo['rank'],
|
||||
@ -59,8 +61,6 @@ class SeasonController extends BaseAuthedController {
|
||||
'noshow_score_bar' => $rankMeta ? $rankMeta['noshow_score_bar'] : 1,
|
||||
'mission' => $this->getMissionInfo()
|
||||
)
|
||||
),
|
||||
'property_chg' => $this->propertyChgService->toDto()
|
||||
));
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user