/** * 富 人国充值展示页面 */ public function index() { import('@.Util.ServerSelect'); $selectServer = new ServerSelect(); $serverList = $selectServer->getUserCreateServers(2); //富人国 $this->assign('serverList', $serverList); $this->display("index"); }
/** * 服务器列表 * @param $gameid 游戏ID */ public function servers() { $game_type = $this->getSysConfig("game_type"); if (!isset($game_type[$_GET['gameid']])) { $this->ajaxReturn(null, null, 0); } //$gameid = $game_type[$_GET['gameid']]['UwanGameId']; $gameid = $_GET['gameid']; if ($gameid) { import('@.Util.ServerSelect'); $serverSelect = new ServerSelect(); $this->ajaxReturn($serverSelect->getUserCreateServers($gameid)); } else { $this->ajaxReturn(null, null, 0); } }