排位赛

This commit is contained in:
hujiabin 2022-10-13 16:14:17 +08:00
parent bea29548e7
commit 16643661cd
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ class Season(object):
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),
['info', _common.Season(), '赛季信息'], ['!info', [_common.Season()], '赛季信息'],
] ]
},{ },{
'name': 'getRankingInfo', 'name': 'getRankingInfo',
@ -37,6 +37,7 @@ class Season(object):
'url': 'webapp/index.php?c=Season&a=getRankingInfo', 'url': 'webapp/index.php?c=Season&a=getRankingInfo',
'params': [ 'params': [
_common.ReqHead(), _common.ReqHead(),
['rank',0,'段位id']
], ],
'response': [ 'response': [
_common.RspHead(), _common.RspHead(),

View File

@ -78,8 +78,7 @@ class SeasonController extends BaseAuthedController {
public function infoNew() public function infoNew()
{ {
$this->getHeroInfo();
die;
$rankMeta = mt\Rank::getRankById($this->userInfo['rank']); $rankMeta = mt\Rank::getRankById($this->userInfo['rank']);
$nextRankMeta = mt\Rank::getNextRankById($this->userInfo['rank']); $nextRankMeta = mt\Rank::getNextRankById($this->userInfo['rank']);
if (!$nextRankMeta){ if (!$nextRankMeta){