Commit 8796a1cb authored by 赵啸非's avatar 赵啸非

添加站点参数

parent 05d8af2b
...@@ -33,7 +33,7 @@ import java.util.Map; ...@@ -33,7 +33,7 @@ import java.util.Map;
@Slf4j @Slf4j
public class MidSignApiController { public class MidSignApiController {
@Value("${mid.midUrl:http://112.19.80.237:9000/masm_agent/}") @Value("${mid.midUrl:http://112.19.80.237:9000/masm_agent}")
private String midUrl; private String midUrl;
@Value("${mid.appId:01C67D56D0630517}") @Value("${mid.appId:01C67D56D0630517}")
...@@ -166,8 +166,8 @@ public class MidSignApiController { ...@@ -166,8 +166,8 @@ public class MidSignApiController {
JSONObject reqBody = new JSONObject(); JSONObject reqBody = new JSONObject();
reqBody.put("request", request); reqBody.put("request", request);
//请求转发 //请求转发
// String fullUrl= String.format("",midReq.getPath() ); String fullUrl= midUrl+midReq.getPath();
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("url:{} \n body:{} \n", fullUrl, reqBody.toJSONString()); log.info("url:{} \n body:{} \n", fullUrl, reqBody.toJSONString());
......
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