game2006api/webapp/controller/ServerSwitchController.class.php
aozhiwei 75b4bd8e18 1
2022-06-15 16:12:23 +08:00

20 lines
427 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);
}
myself()->_rspData(array(
'open_list' => $openList
));
}
}