From 811a7fbd4c493ea043e5b4f1324dfe6f1439ec50 Mon Sep 17 00:00:00 2001 From: yutou Date: Wed, 20 Jan 2021 10:41:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=AF=B7=E6=B1=82=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E4=B8=8D=E8=BD=AC=E5=8F=91=E7=9A=84=E9=97=AE=E9=A2=98?= =?UTF-8?q?=20=E6=96=B0=E5=A2=9E=E8=AF=B7=E6=B1=82=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=9A=84method=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/yutou/tools/ToolsApplication.java | 2 +- src/main/java/com/yutou/tools/other/tools.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/yutou/tools/ToolsApplication.java b/src/main/java/com/yutou/tools/ToolsApplication.java index 30e6595..9976146 100644 --- a/src/main/java/com/yutou/tools/ToolsApplication.java +++ b/src/main/java/com/yutou/tools/ToolsApplication.java @@ -9,7 +9,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class ToolsApplication { - public static final String version="1.0.15.04"; + public static final String version="1.0.15.05"; public static void main(String[] args) { System.out.println("当前版本号:"+version); diff --git a/src/main/java/com/yutou/tools/other/tools.java b/src/main/java/com/yutou/tools/other/tools.java index 1da0a32..edefd12 100644 --- a/src/main/java/com/yutou/tools/other/tools.java +++ b/src/main/java/com/yutou/tools/other/tools.java @@ -74,13 +74,14 @@ public class tools { } JSONObject json = new JSONObject(); json.put("code", 0); + json.put("method",request.getMethod()); json.put("address", Tools.getRemoteAddress(request)); json.put("UA", request.getHeader("User-Agent")); json.put("addressUrl", request.getPathInfo()); json.put("params", params); json.put("cookie", cookies); json.put("header", header); - //Tools.sendServer("打印请求", json.toJSONString()); + Tools.sendServer("打印请求", json.toJSONString()); try { switch (RedisTools.get("request")){ case "success":