Commit e25c3aa6 authored by 赵啸非's avatar 赵啸非

添加站点参数

parent 595784da
...@@ -160,7 +160,13 @@ public class MidSignApiController { ...@@ -160,7 +160,13 @@ public class MidSignApiController {
//请求转发 //请求转发
String fullUrl = UrlBuilder.ofHttp(midUrl).addPath(midReq.getPath()).build(); String fullUrl = UrlBuilder.ofHttp(midUrl).addPath(midReq.getPath()).build();
//String fullUrl = URLUtil.completeUrl(midUrl, midReq.getPath()); //String fullUrl = URLUtil.completeUrl(midUrl, midReq.getPath());
log.info("mid url:{},body:{}", fullUrl, headerMap.get("body")); //log.info("mid url:{},body:{}", fullUrl, headerMap.get("body"));
log.info("mid url:{},body:{}", fullUrl, reqBody.toJSONString());
headerMap.entrySet().forEach(item->{
log.info("head name:{},value:{}", item.getKey(), item.getValue());
});
//String body = HttpUtil.createRequest(Method.POST, fullUrl).headerMap(headerMap, true).body(headerMap.get("body")).execute().body(); //String body = HttpUtil.createRequest(Method.POST, fullUrl).headerMap(headerMap, true).body(headerMap.get("body")).execute().body();
String body = HttpUtil.createRequest(Method.POST, fullUrl).headerMap(headerMap, true).body(reqBody.toJSONString()).execute().body(); String body = HttpUtil.createRequest(Method.POST, fullUrl).headerMap(headerMap, true).body(reqBody.toJSONString()).execute().body();
JSONObject bodyJson = JSONObject.parseObject(body); JSONObject bodyJson = JSONObject.parseObject(body);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment