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":