This commit is contained in:
aozhiwei 2022-06-15 19:57:03 +08:00
parent 75b4bd8e18
commit 6c66cc07a5
2 changed files with 16 additions and 0 deletions

View File

@ -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),

View File

@ -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
));