Browse Source

优化:拦截无权限提示。

lym 1 year ago
parent
commit
99112f8098

+ 2 - 2
common-core/src/main/java/com/hcloud/microserver/commoncore/interceptor/AuthenticationAdvancedInterceptor.java

@@ -155,8 +155,8 @@ public class AuthenticationAdvancedInterceptor extends BaseInterceptor {
                             return ResultEnum.PERMISSION_DENIED;
                         }
                     } else {
-                        log.info("登录过期,请重新登录");
-                        return ResultEnum.TOKEN_EXPIRED;
+                        log.info("没有权限");
+                        return ResultEnum.PERMISSION_DENIED;
                     }
                 }
             }