|
@@ -1,5 +1,6 @@
|
|
|
package com.zswl.cloud.springBtach.server.core.api.dfy;
|
|
|
|
|
|
+import cn.hutool.http.HttpRequest;
|
|
|
import cn.hutool.http.HttpUtil;
|
|
|
import cn.hutool.json.JSONUtil;
|
|
|
import com.zswl.cloud.springBatch.client.model.dfy.DfyBaseData;
|
|
@@ -125,7 +126,10 @@ public class TicketApi {
|
|
|
String signature = Signature.getSignature(JSONUtil.parseObj(dfyRequestBase), secretKey);
|
|
|
dfyRequestBase.setSign(signature);
|
|
|
|
|
|
- String post = HttpUtil.post(host + url, JSONUtil.toJsonStr(dfyRequestBase));
|
|
|
+ HttpRequest httpRequest = HttpRequest.post(host + url);
|
|
|
+ String post = httpRequest.setHttpProxy("8.137.106.193", 3128)
|
|
|
+ .timeout(-1).body(JSONUtil.toJsonStr(dfyRequestBase)).execute().body();
|
|
|
+// String post = HttpUtil.post(host + url, JSONUtil.toJsonStr(dfyRequestBase));
|
|
|
ApiLog apiLog = new ApiLog();
|
|
|
apiLog.setSystem("difengyun");
|
|
|
apiLog.setService(url);
|