From aac0848eb68462a10ee2f649ea436ad7642ef280 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Thu, 18 May 2023 16:31:12 +0800 Subject: [PATCH] 1 --- webapp/controller/RankingController.class.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/webapp/controller/RankingController.class.php b/webapp/controller/RankingController.class.php index 44c48020..6192b1e9 100644 --- a/webapp/controller/RankingController.class.php +++ b/webapp/controller/RankingController.class.php @@ -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); if ($row){ - $myRanked = array( - 'ranked' => -1, - 'user' => $this->_extractUserInfo($userInfo), - 'value' => $row['value'], - 'modifytime' => $row['modifytime'], - ); + $myRanked['value'] = $row['value']; + $myRanked['modifytime'] = $row['modifytime']; } $lists = RankBattle::getTopLimit($type,10000,array('account_id'));