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(