Commit 386511ab authored by 赵啸非's avatar 赵啸非

修改配置文件

parent 9dfe10c7
...@@ -185,7 +185,11 @@ public class ProxyController { ...@@ -185,7 +185,11 @@ public class ProxyController {
String urlGet = HttpUtil.urlWithForm(url.toString(), map, Charset.forName("utf-8"), false); String urlGet = HttpUtil.urlWithForm(url.toString(), map, Charset.forName("utf-8"), false);
//url拼接参数
String resp = HttpUtil.get(urlGet);
return Rest.ok("透传请求成功!", resp);
/* //url拼接参数
Request.Builder requestBuilder = new Request.Builder() Request.Builder requestBuilder = new Request.Builder()
.url(urlGet); .url(urlGet);
// 透传 Headers(过滤掉 Host 避免冲突) // 透传 Headers(过滤掉 Host 避免冲突)
...@@ -211,7 +215,7 @@ public class ProxyController { ...@@ -211,7 +215,7 @@ public class ProxyController {
return Rest.fail(rsp.getMsg()); return Rest.fail(rsp.getMsg());
// return ResponseEntity.ok().body(JSON.toJSONString(rsp)); // return ResponseEntity.ok().body(JSON.toJSONString(rsp));
} }*/
} else { } else {
rsp.setCode(ApiRespCodeEnum.FAILED.getValue()); rsp.setCode(ApiRespCodeEnum.FAILED.getValue());
rsp.setMsg("method is not support!"); rsp.setMsg("method is not support!");
......
...@@ -73,7 +73,7 @@ Content-Type: application/json ...@@ -73,7 +73,7 @@ Content-Type: application/json
} }
###透传代理接口get ###透传代理接口get
POST {{baseUrl}}/proxy/post POST http://192.168.0.250:11089/entservice/proxy/post
Content-Type: application/json Content-Type: application/json
{ {
...@@ -90,6 +90,11 @@ Content-Type: application/json ...@@ -90,6 +90,11 @@ Content-Type: application/json
{"page": 1, "size": 10} {"page": 1, "size": 10}
###
GET http://192.168.0.250:11089/entservice/ent/life/cycle/interinfo?id=1
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