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();
$row = RankBattle::find($type);
if ($row){
$myRanked = array( $myRanked = array(
'ranked' => -1, 'ranked' => -1,
'user' => $this->_extractUserInfo($userInfo), 'user' => $this->_extractUserInfo($userInfo),
'value' => $row['value'], 'value' => 0,
'modifytime' => $row['modifytime'], 'modifytime' => 0,
); );
$row = RankBattle::find($type);
if ($row){
$myRanked['value'] = $row['value'];
$myRanked['modifytime'] = $row['modifytime'];
} }
$lists = RankBattle::getTopLimit($type,10000,array('account_id')); $lists = RankBattle::getTopLimit($type,10000,array('account_id'));