game2006api/webapp/controller/ServerSwitchController.class.php
aozhiwei 59ad6ba2e9 1
2023-08-09 14:27:54 +08:00

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