From 7fe27eca4188b63ae40ce845c390ed5e1e7c3aa9 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 3 Dec 2021 12:16:09 +0800 Subject: [PATCH] 1 --- webapp/controller/SeasonCardController.class.php | 5 +++++ webapp/services/DropService.php | 7 +++++++ 2 files changed, 12 insertions(+) create mode 100644 webapp/services/DropService.php diff --git a/webapp/controller/SeasonCardController.class.php b/webapp/controller/SeasonCardController.class.php index b614dd17..a48cfba9 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 00000000..e4353e47 --- /dev/null +++ b/webapp/services/DropService.php @@ -0,0 +1,7 @@ +