diff --git a/webapp/controller/RankingController.class.php b/webapp/controller/RankingController.class.php index 935c7d24..172fa1a5 100644 --- a/webapp/controller/RankingController.class.php +++ b/webapp/controller/RankingController.class.php @@ -161,6 +161,21 @@ class RankingController extends BaseAuthedController { $myRanked['modifytime'] = $row['modifytime']; } } + if (SERVER_ENV != _ONLINE) { + for ($i = 0; $i < 100; ++$i) { + $userDto = User::find('6513_2006_3WOWIsmpcihK1KTnNP1Ky5MBOh7rt6Rl'); + $userDto = User::toSimple($userDto); + $userDto['account_id'] = 'test' . $i; + $userDto['name'] = 'test' . $i; + array_push($rankingList, + array( + 'ranked' => count($rankingList) + 1, + 'value' => count($rankingList) + 1, + 'user' => $userDto, + 'modifytime' => myself()->_getNowTime(), + )); + } + } $timeZone = 8; $rankingData = array( /*'daySeconds' => phpcommon\getdayseconds(myself()->_getNowTime(), $timeZone), diff --git a/webapp/controller/ServerSwitchController.class.php b/webapp/controller/ServerSwitchController.class.php index 2560509d..50da18ab 100644 --- a/webapp/controller/ServerSwitchController.class.php +++ b/webapp/controller/ServerSwitchController.class.php @@ -11,6 +11,7 @@ class ServerSwitchController extends BaseAuthedController { if (myself()->_getNowTime() > 1655337600) { array_push($openList, 2); } + array_push($openList, 2); myself()->_rspData(array( 'open_list' => $openList ));