diff --git a/webapp/controller/SeasonController.class.php b/webapp/controller/SeasonController.class.php index 0114fb0f..bebaae98 100644 --- a/webapp/controller/SeasonController.class.php +++ b/webapp/controller/SeasonController.class.php @@ -36,23 +36,23 @@ class SeasonController extends BaseAuthedController { { parent::_handlePre(); $this->currRankSeasonMeta = mt\RankSeason::getCurrentSeason(); - $this->currSeasonMeta = mt\Season::getCurrentSeason(); - if (!$this->currSeasonMeta) { +// $this->currSeasonMeta = mt\Season::getCurrentSeason(); + if (!$this->currRankSeasonMeta) { $this->_rspErr(10, 'server internal error'); 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)) { - $this->userInfo = $this->_safeGetOrmUserInfo(); - $this->propertyChgService->addUserChg(); - } - $this->seasonDb = Season::find($this->currSeasonMeta['id']); +// $this->seasonService = new services\SeasonService(); +// if (!$this->seasonService->checkSeason($this->userInfo)) { +// $this->userInfo = $this->_safeGetOrmUserInfo(); +// $this->propertyChgService->addUserChg(); +// } + $this->seasonDb = Season::find($this->currRankSeasonMeta['id']); if (!$this->seasonDb) { - Season::add($this->currSeasonMeta['id']); - $this->seasonDb = Season::find($this->currSeasonMeta['id']); + Season::add($this->currRankSeasonMeta['id']); + $this->seasonDb = Season::find($this->currRankSeasonMeta['id']); } if (!$this->seasonDb) { $this->_rspErr(10, 'server internal error');