From 457431e3bd8e535b15aea03d4021271a7b846065 Mon Sep 17 00:00:00 2001 From: hujiabin Date: Wed, 14 Dec 2022 16:00:10 +0800 Subject: [PATCH] 1 --- webapp/controller/EventRankingController.class.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/webapp/controller/EventRankingController.class.php b/webapp/controller/EventRankingController.class.php index bde87534..1331b6e4 100644 --- a/webapp/controller/EventRankingController.class.php +++ b/webapp/controller/EventRankingController.class.php @@ -121,6 +121,19 @@ class EventRankingController extends BaseAuthedController $rankingList = $data['lists']; } break; case \services\RankActivityService::GUILD_TYPE : { + $this->myRanked['test_ceg'] = 0; + $rankDb = SqlHelper::ormSelectOne + (myself()->_getSelfMysql(), + 't_rank_activity', + array( + 'account_id' => myself()->_getAccountId(), + 'wave' => $wave, + 'type' => $type, + ) + ); + if ($rankDb){ + $this->myRanked['test_ceg'] = $rankDb['value']; + } $rows = myself()->_getSelfMysql()->execQuery( 'SELECT guild_id,SUM(value) AS value FROM t_rank_activity ' . 'WHERE wave=:wave AND type=:type AND guild_id<>""' .