From bb09ef9005c6d93a98fc613a3811a9c5caa9242d Mon Sep 17 00:00:00 2001 From: chenzhi <“chenzhi063@qq.com> Date: Tue, 26 Nov 2019 21:37:29 +0800 Subject: [PATCH] =?UTF-8?q?[bug]=E8=A7=92=E8=89=B2=E6=9F=A5=E8=AF=A2?= =?UTF-8?q?=E5=8C=BA=E6=9C=8D=E4=B8=8D=E6=98=BE=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Application/Admin/View/User/rolelist.html | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Application/Admin/View/User/rolelist.html b/Application/Admin/View/User/rolelist.html index bad81eab1..bf47b39db 100644 --- a/Application/Admin/View/User/rolelist.html +++ b/Application/Admin/View/User/rolelist.html @@ -279,7 +279,7 @@ $(".select_gallery").select2(); }) }); $("#promote_level").change(); - var game_server = "{:I('server_name')}"; + var game_id = "{:I('server_id')}"; $("#game_type").change(function(){ $.ajax({ url:"{:U('Ajax/getGmeServer')}", @@ -287,13 +287,14 @@ $(".select_gallery").select2(); data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()}, dataType:'json', success:function(data){ + console.log(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(); } }) });