game2006api/webapp/controller/ServerSwitchController.class.php
aozhiwei 6c66cc07a5 1
2022-06-15 19:57:03 +08:00

21 lines
461 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);
}
array_push($openList, 2);
myself()->_rspData(array(
'open_list' => $openList
));
}
}