From add505e4a2d4974801ef115d076632805171f644 Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Fri, 21 Jan 2022 10:11:00 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9D=9E=E4=BD=93=E9=AA=8C=E5=88=86=E6=94=AF?= =?UTF-8?q?=E7=A7=BB=E9=99=A4=E5=AF=B9guest=E7=94=A8=E6=88=B7=E5=A4=84?= =?UTF-8?q?=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gaea/business/filter/TokenFilter.java | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java b/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java index 04b94719..e6595b68 100644 --- a/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java +++ b/report-core/src/main/java/com/anjiplus/template/gaea/business/filter/TokenFilter.java @@ -172,28 +172,6 @@ public class TokenFilter implements Filter { cacheHelper.stringSetExpire(tokenKey, token, 3600); cacheHelper.stringSetExpire(userKey, gaeaUserJsonStr, 3600); - //在线体验版本 - if (USER_GUEST.equals(loginName) - && !uri.endsWith("/dataSet/testTransform") - && !uri.endsWith("/reportDashboard/getData") - && !uri.startsWith("/dict") - && !uri.endsWith("/reportExcel/preview") - ) { - //不允许删除 - String method = request.getMethod(); - if (HttpMethod.POST.name().equalsIgnoreCase(method) - || HttpMethod.PUT.name().equalsIgnoreCase(method) - || HttpMethod.DELETE.name().equalsIgnoreCase(method) - || uri.contains("/reportDashboard/export") - ) { - ResponseBean responseBean = ResponseBean.builder().code("50001") - .message("在线体验版本,不允许此操作。请自行下载本地运行").build(); - response.setContentType(ContentType.APPLICATION_JSON.getMimeType()); - response.getWriter().print(JSONObject.toJSONString(responseBean)); - return; - } - } - //执行 filterChain.doFilter(request, response); }