This commit is contained in:
hujiabin 2023-05-18 16:31:12 +08:00
parent 506897fceb
commit aac0848eb6

View File

@ -65,15 +65,16 @@ class RankingController extends BaseAuthedController {
)); ));
} }
$myRanked = array(); $myRanked = array(
'ranked' => -1,
'user' => $this->_extractUserInfo($userInfo),
'value' => 0,
'modifytime' => 0,
);
$row = RankBattle::find($type); $row = RankBattle::find($type);
if ($row){ if ($row){
$myRanked = array( $myRanked['value'] = $row['value'];
'ranked' => -1, $myRanked['modifytime'] = $row['modifytime'];
'user' => $this->_extractUserInfo($userInfo),
'value' => $row['value'],
'modifytime' => $row['modifytime'],
);
} }
$lists = RankBattle::getTopLimit($type,10000,array('account_id')); $lists = RankBattle::getTopLimit($type,10000,array('account_id'));