From ba68e0c6d60652189d3629e04f0e781245c09b25 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Sat, 14 May 2022 16:17:31 +0800 Subject: [PATCH] 1 --- webapp/controller/RankingController.class.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/webapp/controller/RankingController.class.php b/webapp/controller/RankingController.class.php index e9969b43..bd3fd512 100644 --- a/webapp/controller/RankingController.class.php +++ b/webapp/controller/RankingController.class.php @@ -88,7 +88,8 @@ class RankingController extends BaseAuthedController { $myRanked = array( 'ranked' => -1, 'user' => User::toSimple($userInfo), - 'value' => 0 + 'value' => 0, + 'modifytime' => 0, ); $rankingList = array(); $meta = mt\RankActivity::get($type); @@ -120,11 +121,13 @@ class RankingController extends BaseAuthedController { if ($user['account_id'] == $myRanked['user']['account_id']) { $myRanked['ranked'] = $ranked; $myRanked['value'] = $row['value']; + $myRanked['modifytime'] = $row['modifytime']; } array_push($rankingList, array( 'ranked' => $ranked++, 'user' => User::toSimple($user), - 'value' => $row['value'] + 'value' => $row['value'], + 'modifytime' => $row['modifytime'], )); } }