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