修复请求接口不转发的问题

新增请求接口的method参数
This commit is contained in:
yutou 2021-01-20 10:41:57 +08:00
parent 45ce18edac
commit 811a7fbd4c
2 changed files with 3 additions and 2 deletions

View File

@ -9,7 +9,7 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication @SpringBootApplication
public class ToolsApplication { 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) { public static void main(String[] args) {
System.out.println("当前版本号:"+version); System.out.println("当前版本号:"+version);

View File

@ -74,13 +74,14 @@ public class tools {
} }
JSONObject json = new JSONObject(); JSONObject json = new JSONObject();
json.put("code", 0); json.put("code", 0);
json.put("method",request.getMethod());
json.put("address", Tools.getRemoteAddress(request)); json.put("address", Tools.getRemoteAddress(request));
json.put("UA", request.getHeader("User-Agent")); json.put("UA", request.getHeader("User-Agent"));
json.put("addressUrl", request.getPathInfo()); json.put("addressUrl", request.getPathInfo());
json.put("params", params); json.put("params", params);
json.put("cookie", cookies); json.put("cookie", cookies);
json.put("header", header); json.put("header", header);
//Tools.sendServer("打印请求", json.toJSONString()); Tools.sendServer("打印请求", json.toJSONString());
try { try {
switch (RedisTools.get("request")){ switch (RedisTools.get("request")){
case "success": case "success":