From 2d2f3abf759f2693362b751f2e4940cbce9cad30 Mon Sep 17 00:00:00 2001
From: chenzhi <“chenzhi063@qq.com>
Date: Tue, 26 Nov 2019 22:00:25 +0800
Subject: [PATCH] =?UTF-8?q?[bug]=E8=A7=92=E8=89=B2=E6=9F=A5=E8=AF=A2=20?=
=?UTF-8?q?=E6=97=A0=E6=B8=B8=E6=88=8F=E5=8C=BA=E6=9C=8D=E5=85=A8=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Application/Admin/View/User/rolelist.html | 35 ++++++++++++++---------
1 file changed, 21 insertions(+), 14 deletions(-)
diff --git a/Application/Admin/View/User/rolelist.html b/Application/Admin/View/User/rolelist.html
index 464efb997..e565a8218 100644
--- a/Application/Admin/View/User/rolelist.html
+++ b/Application/Admin/View/User/rolelist.html
@@ -281,21 +281,28 @@ $(".select_gallery").select2();
$("#promote_level").change();
var game_id = "{:I('server_id')}";
$("#game_type").change(function(){
- $.ajax({
- url:"{:U('Ajax/getGmeServer')}",
- type:"post",
- data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
- dataType:'json',
- success:function(data){
- str = "";
- for (var i in data){
- str += ""
+ var game_name = $("#game_name option:selected").val();
+ if(game_name != ''){
+ $.ajax({
+ url:"{:U('Ajax/getGmeServer')}",
+ type:"post",
+ data:{sdk_version:$("#game_type option:selected").val(), game_name:$("#game_name option:selected").val()},
+ dataType:'json',
+ success:function(data){
+ str = "";
+ for (var i in data){
+ str += ""
+ }
+ $("#server_id").empty();
+ $("#server_id").append(str);
+ $("#server_id").select2();
}
- $("#server_id").empty();
- $("#server_id").append(str);
- $("#server_id").select2();
- }
- })
+ })
+ }else{
+ $("#server_id").html("");
+ $("#server_id").append("");
+ }
+
});
$("#game_name").change(function(){