From 8bcdb8600c6465b7a1d63dfe52ea05df4fb88409 Mon Sep 17 00:00:00 2001 From: lzp <15321168632@163.com> Date: Thu, 27 Jan 2022 10:33:52 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix=20=E8=AE=A4=E8=AF=81=E9=94=99=E8=AF=AF?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../security/core/handler/AccessDeniedHandlerImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/handler/AccessDeniedHandlerImpl.java b/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/handler/AccessDeniedHandlerImpl.java index fa0c4b373..33f3f14f4 100644 --- a/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/handler/AccessDeniedHandlerImpl.java +++ b/yudao-framework/yudao-spring-boot-starter-security/src/main/java/cn/iocoder/yudao/framework/security/core/handler/AccessDeniedHandlerImpl.java @@ -16,6 +16,7 @@ import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import java.io.IOException; +import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.FORBIDDEN; import static cn.iocoder.yudao.framework.common.exception.enums.GlobalErrorCodeConstants.UNAUTHORIZED; /** @@ -36,7 +37,7 @@ public class AccessDeniedHandlerImpl implements AccessDeniedHandler { log.warn("[commence][访问 URL({}) 时,用户({}) 权限不够]", request.getRequestURI(), SecurityFrameworkUtils.getLoginUserId(), e); // 返回 403 - ServletUtils.writeJSON(response, CommonResult.error(UNAUTHORIZED)); + ServletUtils.writeJSON(response, CommonResult.error(FORBIDDEN)); } } From b85b33c37343eefebce550fd0a0f401ec6dcf380 Mon Sep 17 00:00:00 2001 From: zxucooly Date: Thu, 3 Feb 2022 10:36:24 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=85=AC=E7=94=A8=E5=B1=82=E6=8F=8F?= =?UTF-8?q?=E8=BF=B0=E4=BF=AE=E6=94=B9=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-core-service/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-core-service/pom.xml b/yudao-core-service/pom.xml index aaec8d2a6..e23304611 100644 --- a/yudao-core-service/pom.xml +++ b/yudao-core-service/pom.xml @@ -14,7 +14,7 @@ yudao-core-service - 公共服务,通过 jar 包的方式,被 yudao-admin-server、yudao-user-service 使用。例如说: + 公共服务,通过 jar 包的方式,被 yudao-admin-server、yudao-user-server 使用。例如说: 1. 日志相关:访问日志、登录日志、异常日志等等 2. 认证相关:在线 Session 3. 短信相关:短信模板、短信日志