From a4471209eab7dd9fc8abe887109a3f4d4a61d9c1 Mon Sep 17 00:00:00 2001 From: aozhiwei Date: Thu, 26 May 2022 18:21:36 +0800 Subject: [PATCH] 1 --- webapp/controller/RankingController.class.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/webapp/controller/RankingController.class.php b/webapp/controller/RankingController.class.php index 3c479d3b..54affdcb 100644 --- a/webapp/controller/RankingController.class.php +++ b/webapp/controller/RankingController.class.php @@ -135,6 +135,21 @@ class RankingController extends BaseAuthedController { } } } + { + $row = myself()->_getSelfMysql()->execQueryOne( + 'SELECT * FROM t_rank_activity ' . + 'WHERE type=:type AND channel=:channel AND account_id=:account_id;', + array( + ':type' => $type, + ':channel' => $channel, + ':account_id' => myself()->_getAccountId(), + ) + ); + if ($row) { + $myRanked['value'] = $row['value']; + $myRanked['modifytime'] = $row['modifytime']; + } + } } $timeZone = 8; $rankingData = array(