月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-09-28 5da1994ffa1629f278d01183a66c7405135adfa6
src/main/java/com/moon/server/helper/HttpHelper.java
@@ -158,7 +158,6 @@
    protected String getRealCookie(String cookieValue) {
        StringBuilder escapedCookie = new StringBuilder();
        String[] cookies = cookieValue.split("[;,]");
        for (String cookie : cookies) {
            String[] cookieSplit = cookie.split("=");
@@ -292,6 +291,10 @@
        }
        String str = EntityUtils.toString(proxyResponse.getEntity(), "UTF-8");
        String proxyUrl = res.getProxy().replace("{token}", response.getHeader("token"));
        proxyUrl = request.getRequestURL().substring(0, request.getRequestURL().indexOf(proxyUrl) + proxyUrl.length());
        str = str.replace(res.getUrl(), proxyUrl);
        int index = str.indexOf(StaticData.QUERYABLE);
        while (index > -1) {
            int start = str.indexOf("<Name>", index) + StaticData.I6;
@@ -299,6 +302,7 @@
            String name = ":" + str.substring(start, str.indexOf("</Name>", start));
            if (!res.getTab().contains(name)) {
                end = str.indexOf("<", end);
                str = str.substring(0, index) + str.substring(end);
                index = str.indexOf(StaticData.QUERYABLE, index);
            } else {