月球大数据地理空间分析展示平台-【后端】-月球后台服务
13693261870
2023-07-18 340ed663ca8d8d14f29dc958c0a50103955c879c
src/main/java/com/moon/server/service/sys/ProxyService.java
@@ -51,6 +51,9 @@
        if (null == ue) {
            return;
        }
        if (!check(req, res, ue, token)) {
            return;
        }
        // 9.获取资源实体
        ResEntity entity = getResEntity(ue, resId);
@@ -62,7 +65,8 @@
        insertLog(req, ue, resId);
        String url = getSourceUrl(req, entity, token);
        forward(req, res, url);
        res.setHeader("token", token);
        forward(req, res, entity, url);
    }
    /**
@@ -237,8 +241,8 @@
    /**
     * 转发请求
     */
    private void forward(HttpServletRequest request, HttpServletResponse response, String url) throws Exception {
    private void forward(HttpServletRequest request, HttpServletResponse response, ResEntity entity, String url) throws Exception {
        HttpHelper httpHelper = new HttpHelper();
        httpHelper.service(request, response, url, null);
        httpHelper.service(request, response, entity, url);
    }
}