From f6a98b617e8892b1e109912ef80b8709eb296da5 Mon Sep 17 00:00:00 2001 From: duhui Date: Mon, 26 Apr 2021 14:52:44 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9C=8D=E5=8A=A1=E5=99=A8=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E5=85=A8=E9=80=89,=20=E5=8F=91=E9=80=81gm=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/jmfy/controller/GmController.java | 15 +- .../resources/templates/findServerInfo.html | 8 +- src/main/resources/templates/sendSysCmd.html | 169 +++++++++--------- src/main/resources/templates/sendSysMail.html | 5 +- 4 files changed, 96 insertions(+), 101 deletions(-) diff --git a/src/main/java/com/jmfy/controller/GmController.java b/src/main/java/com/jmfy/controller/GmController.java index d74c320..1bc273f 100644 --- a/src/main/java/com/jmfy/controller/GmController.java +++ b/src/main/java/com/jmfy/controller/GmController.java @@ -41,15 +41,10 @@ public class GmController { serverList.add(serverInfo.getServer_id()); } - String content = request.getParameter("content"); - String[] serverId = request.getParameterValues("serverId[]"); - String cmd = content; - for (String s:serverId){ - System.out.println(s); - } - - for (String str : serverId) { - + String cmd = request.getParameter("content"); + String serverId = request.getParameter("serverId"); + String[] split = serverId.split(","); + for (String str : split) { if (!serverList.contains(str)) { continue; } @@ -70,7 +65,7 @@ public class GmController { Result result = RPCClient.gmSend(cmd, thriftIp, thriftPort); //异常或者错误 if (result.getResultCode() != 0) { - continue; + System.out.println("===================发送gm返回异常:"+result.getResultMsg()); } } } catch (Exception e) { diff --git a/src/main/resources/templates/findServerInfo.html b/src/main/resources/templates/findServerInfo.html index 56aee40..e280142 100644 --- a/src/main/resources/templates/findServerInfo.html +++ b/src/main/resources/templates/findServerInfo.html @@ -73,7 +73,7 @@ - + 全选 server_id ip:port 开启类型 @@ -140,13 +140,13 @@ "aoColumnDefs": [ ] }); - /*function ckAll(){ + function ckAll(){ var flag=document.getElementById("allChecks").checked; var cks=document.getElementsByName("check"); for(var i=0;i + + + + 基本设置 -
-
- -
- 全选 -
-
-
- - -
-
+

发送GM

+
+ +
+ +
+
-
- -
- - -
+
+ +
+ +
+
-
-
- -
+
+
+
- - +
@@ -108,6 +83,10 @@ + + + + @@ -115,34 +94,56 @@ -