浏览代码

修改参数

andy 1 年之前
父节点
当前提交
dad89a80b0
共有 1 个文件被更改,包括 1 次插入3 次删除
  1. 1 3
      src/main/java/com/scbfkj/uni/library/script/HttpScriptUtil.java

+ 1 - 3
src/main/java/com/scbfkj/uni/library/script/HttpScriptUtil.java

@@ -23,15 +23,13 @@ public class HttpScriptUtil {
                 connection.put("headers",data.get("headers"));
             }
             if(data.containsKey("body")){
-                connection.put("headers",data.get("headers"));
+                connection.put("body",data.get("body"));
             }
                 connection.put("method",data.get("method"));
 
         return new Web().execWebApi(connection.get("headers"), connection.getOrDefault("method", "post").toString(), connection.get("body"), DataFormatUtil.toString(connection));
     }
     public static Map<String, Object> exec(Object header, String method, Object defaultBody, String url) throws Exception {
-
-
         return new Web().execWebApi(header, method, defaultBody, url);
     }