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

添加站点参数

parent 47afbdc3
......@@ -158,11 +158,17 @@ public class MidSignApiController {
log.info("head name:{},value:{}", item.getKey(), item.getValue());
});
*/
String request = Base64.encodeBase64String(object.toJSONString().getBytes("UTF-8"));
headerMap.entrySet().forEach(item->{
log.info("{}={} \n", item.getKey(), item.getValue());
});
//请求转发
String fullUrl = UrlBuilder.ofHttp(midUrl).addPath(midReq.getPath()).build();
//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("url:{} \n body:{}", fullUrl, request);
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();
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