From 14821e28286d773ad5ff2c13510e39c5eb117daf Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期五, 05 七月 2024 13:46:32 +0800 Subject: [PATCH] update --- exam-framework/src/main/java/com/gkhy/exam/framework/exception/GlobalExceptionHandler.java | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/exam-framework/src/main/java/com/gkhy/exam/framework/exception/GlobalExceptionHandler.java b/exam-framework/src/main/java/com/gkhy/exam/framework/exception/GlobalExceptionHandler.java index e00b2bd..e7c4ae4 100644 --- a/exam-framework/src/main/java/com/gkhy/exam/framework/exception/GlobalExceptionHandler.java +++ b/exam-framework/src/main/java/com/gkhy/exam/framework/exception/GlobalExceptionHandler.java @@ -1,6 +1,7 @@ package com.gkhy.exam.framework.exception; import com.gkhy.exam.common.api.CommonResult; +import com.gkhy.exam.common.api.ResultCode; import com.gkhy.exam.common.exception.ApiException; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; @@ -89,7 +90,7 @@ public CommonResult handleAccessDeniedException(RuntimeException ex, HttpServletRequest request) { writeExceptionLogFile(ex); - return CommonResult.failed("权限不足,无法访问系统资源"); + return CommonResult.failed(ResultCode.FORBIDDEN,"权限不足,无法访问系统资源"); } /** -- Gitblit v1.9.2