diff --git a/webapp/controller/SeasonCardController.class.php b/webapp/controller/SeasonCardController.class.php index b614dd1..a48cfba 100644 --- a/webapp/controller/SeasonCardController.class.php +++ b/webapp/controller/SeasonCardController.class.php @@ -45,8 +45,13 @@ class SeasonCardController extends BaseAuthedController { } $this->seasonDb = Season::find($this->currSeasonMeta['id']); if (!$this->seasonDb) { + Season::add($this->currSeasonMeta['id']); $this->seasonDb = Season::find($this->currSeasonMeta['id']); } + if (!$this->seasonDb) { + $this->_rspErr(10, '服务器内部错误'); + die(); + } } public function info() diff --git a/webapp/services/DropService.php b/webapp/services/DropService.php new file mode 100644 index 0000000..e4353e4 --- /dev/null +++ b/webapp/services/DropService.php @@ -0,0 +1,7 @@ +