kongzy
2024-07-05 14821e28286d773ad5ff2c13510e39c5eb117daf
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,"权限不足,无法访问系统资源");
    }
    /**