diff --git a/Application/Admin/Controller/ServerController.class.php b/Application/Admin/Controller/ServerController.class.php index 0af4e3057..15318d831 100644 --- a/Application/Admin/Controller/ServerController.class.php +++ b/Application/Admin/Controller/ServerController.class.php @@ -44,9 +44,9 @@ class ServerController extends ThinkController { unset($_REQUEST['game_name']); } } - if(isset($_REQUEST['server_name'])){ - $extend['server_name']=$_REQUEST['server_name']; - unset($_REQUEST['server_name']); + if(isset($_REQUEST['server_id'])){ + $extend['server_id']=$_REQUEST['server_id']; + unset($_REQUEST['server_id']); } if(empty($_GET['type']) || $_GET['type'] == 1) { $extend['developers'] = array('EQ',0); diff --git a/Application/Admin/View/Server/lists.html b/Application/Admin/View/Server/lists.html index 8eaf145c6..4bb159751 100644 --- a/Application/Admin/View/Server/lists.html +++ b/Application/Admin/View/Server/lists.html @@ -86,7 +86,7 @@
-
@@ -333,7 +333,7 @@ $(function(){ }); $("#server_version").change(); - var game_server = "{:I('server_name')}"; + var game_server = "{:I('server_id')}"; $("#game_name").change(function(){ $.ajax({ url:"{:U('Ajax/getGmeServer')}", @@ -343,11 +343,11 @@ $(function(){ success:function(data){ str = ""; for (var i in data){ - str += "" + str += "" } - $("#server_name").empty(); - $("#server_name").append(str); - $("#server_name").select2(); + $("#server_id").empty(); + $("#server_id").append(str); + $("#server_id").select2(); } }) });