1
This commit is contained in:
parent
b75d4811da
commit
94b76f7e8a
@ -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');
|
||||
|
Loading…
x
Reference in New Issue
Block a user