1
This commit is contained in:
parent
a3334dd960
commit
9d4045bba4
@ -1,13 +1,35 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
require 'classes/AddReward.php';
|
|
||||||
|
|
||||||
require_once('mt/SeasonPoint.php');
|
|
||||||
|
|
||||||
class RankingController extends BaseAuthedController {
|
class RankingController extends BaseAuthedController {
|
||||||
|
|
||||||
public function rankingList()
|
public function rankingList()
|
||||||
{
|
{
|
||||||
|
$userInfo = $this->_getOrmUserInfo();
|
||||||
|
$type = getReqVal('type', 0);
|
||||||
|
$rankingData = array(
|
||||||
|
'type' => $type,
|
||||||
|
'ranking_list' => array(),
|
||||||
|
'my_ranked' => array(
|
||||||
|
'ranked' => -1,
|
||||||
|
'account_id' => $this->_getAccountId(),
|
||||||
|
'name' => $userInfo['name'],
|
||||||
|
'name' => $userInfo['name'],
|
||||||
|
'sex' => $userInfo['sex'],
|
||||||
|
'head_id' => $userInfo['hero_id'],
|
||||||
|
'head_frame' => $userInfo['head_frame'],
|
||||||
|
'level' => $userInfo['level'],
|
||||||
|
'exp' => $userInfo['exp'],
|
||||||
|
'rank' => $userInfo['rank'],
|
||||||
|
'score' => $userInfo['score'],
|
||||||
|
'gold' => $userInfo['gold'],
|
||||||
|
'diamond' => $userInfo['diamond'],
|
||||||
|
'hero_id' => $userInfo['hero_id'],
|
||||||
|
'first_fight' => $userInfo['first_fight'],
|
||||||
|
)
|
||||||
|
);
|
||||||
|
$this->_rspData(array(
|
||||||
|
'ranking_list' =>$rankingData
|
||||||
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user