From 76c1fad1cb2cbbbe2564b9ea70cff6fe8951a34d Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Fri, 3 Dec 2021 10:16:48 +0800 Subject: [PATCH] 1 --- webapp/controller/BagController.class.php | 4 +++- webapp/controller/SeasonCardController.class.php | 16 ++++++++++++++-- 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/webapp/controller/BagController.class.php b/webapp/controller/BagController.class.php index a15b2754..6b360d92 100644 --- a/webapp/controller/BagController.class.php +++ b/webapp/controller/BagController.class.php @@ -24,7 +24,9 @@ class BagController extends BaseAuthedController { } ); $this->_rspData(array( - 'item_list' => $itemList + 'item_list' => $itemList, + #'time' => date('Y-m-d H:i:s', -662716800), + #'datetime' => strtotime('1949-01-01 00:00:00') )); } diff --git a/webapp/controller/SeasonCardController.class.php b/webapp/controller/SeasonCardController.class.php index 36ccad7f..7c520507 100644 --- a/webapp/controller/SeasonCardController.class.php +++ b/webapp/controller/SeasonCardController.class.php @@ -19,12 +19,15 @@ class SeasonCardController extends BaseAuthedController { private $propertyChgService = null; private $userInfo = null; private $seasonService = null; + private $currSeasonMeta = null; + private $seasonDb = null; + private $seasonCardDb = null; public function _handlePre() { parent::_handlePre(); - $currSeasonMeta = mt\Season::getCurrentSeason(); - if (!$currSeasonMeta) { + $this->currSeasonMeta = mt\Season::getCurrentSeason(); + if (!$this->currSeasonMeta) { $this->_rspErr(10, '服务器内部错误'); die(); } @@ -39,6 +42,15 @@ class SeasonCardController extends BaseAuthedController { public function info() { + $this->_rspData(array( + array( + 'info' => array( + 'season_id' => $this->currSeasonMeta['id'], + 'card_lv' => $this->seasonDb ? $this->seasonDb['card_lv'] : 1, + 'card_exp' => $this->seasonDb ? $this->seasonDb['card_exp'] : 0, + ) + ) + )); } public function getReward()