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()