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

修改配置文件

parent 3084a7c1
package com.mortals.xhx.busiz.web;
import cn.hutool.http.HttpUtil;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONObject;
import com.mortals.framework.annotation.UnAuth;
......@@ -17,6 +18,7 @@ import org.springframework.web.reactive.function.client.WebClient;
import reactor.core.publisher.Mono;
import java.io.IOException;
import java.nio.charset.Charset;
import java.util.Map;
@RestController
......@@ -177,14 +179,16 @@ public class ProxyController {
} else if ("get".equalsIgnoreCase(method)) {
Map<String, String> map = req.toJavaObject(Map.class);
String bodyParams = getBodyParams(map);
log.info(bodyParams);
Map<String, Object> map = req.toJavaObject(Map.class);
/* String bodyParams = getBodyParams(map);
log.info(bodyParams);*/
String urlGet = HttpUtil.urlWithForm(url.toString(), map, Charset.forName("utf-8"), false);
//url拼接参数
Request.Builder requestBuilder = new Request.Builder()
.url(url+bodyParams)
.url(urlGet)
.get();
// 透传 Headers(过滤掉 Host 避免冲突)
headers.forEach((key, value) -> {
......
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