23 lines
512 B
PHP
23 lines
512 B
PHP
<?php
|
|
|
|
class ServerSwitchController extends BaseAuthedController {
|
|
|
|
public function getSwitch()
|
|
{
|
|
$openList = array();
|
|
if (myself()->_getNowTime() > 1654704480) {
|
|
array_push($openList, 1);
|
|
}
|
|
if (myself()->_getNowTime() > 1655337600) {
|
|
array_push($openList, 2);
|
|
}
|
|
if (SERVER_ENV == _ONLINE) {
|
|
array_push($openList, 3);
|
|
}
|
|
myself()->_rspData(array(
|
|
'open_list' => $openList
|
|
));
|
|
}
|
|
|
|
}
|