1
This commit is contained in:
parent
67646a85de
commit
76c1fad1cb
@ -24,7 +24,9 @@ class BagController extends BaseAuthedController {
|
|||||||
}
|
}
|
||||||
);
|
);
|
||||||
$this->_rspData(array(
|
$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')
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -19,12 +19,15 @@ class SeasonCardController extends BaseAuthedController {
|
|||||||
private $propertyChgService = null;
|
private $propertyChgService = null;
|
||||||
private $userInfo = null;
|
private $userInfo = null;
|
||||||
private $seasonService = null;
|
private $seasonService = null;
|
||||||
|
private $currSeasonMeta = null;
|
||||||
|
private $seasonDb = null;
|
||||||
|
private $seasonCardDb = null;
|
||||||
|
|
||||||
public function _handlePre()
|
public function _handlePre()
|
||||||
{
|
{
|
||||||
parent::_handlePre();
|
parent::_handlePre();
|
||||||
$currSeasonMeta = mt\Season::getCurrentSeason();
|
$this->currSeasonMeta = mt\Season::getCurrentSeason();
|
||||||
if (!$currSeasonMeta) {
|
if (!$this->currSeasonMeta) {
|
||||||
$this->_rspErr(10, '服务器内部错误');
|
$this->_rspErr(10, '服务器内部错误');
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
@ -39,6 +42,15 @@ class SeasonCardController extends BaseAuthedController {
|
|||||||
|
|
||||||
public function info()
|
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()
|
public function getReward()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user