jason 1 year ago
parent
commit
434125890c
1 changed files with 1 additions and 6 deletions
  1. 1 6
      APIVisit.java

+ 1 - 6
APIVisit.java

@@ -77,12 +77,7 @@ public class APIVisit {
     public static void visit(String url, String token, String secret, Boolean enc, Map<String, String> param) {
     public static void visit(String url, String token, String secret, Boolean enc, Map<String, String> param) {
 
 
         try {
         try {
-            String data = "";
-            JSONObject jobj = JSONObject.fromObject(param);
-            data = jobj.toString();
-            if (enc) {
-                 data = AesEcbEncrypt(data, secret);
-            }
+           
             // http 设置和请求
             // http 设置和请求
             HttpClient client = HttpClientBuilder.create().build();
             HttpClient client = HttpClientBuilder.create().build();
             URIBuilder uriBuilder = new URIBuilder(url);
             URIBuilder uriBuilder = new URIBuilder(url);