File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
admin-api/src/main/java/com/lmxdawn/admin/aspect Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ public void adminLoginVerify() {
31
31
32
32
/**
33
33
* 登录验证
34
+ *
34
35
* @param joinPoint
35
36
*/
36
37
@ Before ("adminLoginVerify()" )
@@ -60,20 +61,21 @@ public void doAdminAuthVerify(JoinPoint joinPoint) {
60
61
Method method = signature .getMethod ();
61
62
//得到了方,提取出他的注解
62
63
AdminAuthRuleAnnotation action = method .getAnnotation (AdminAuthRuleAnnotation .class );
63
- // 如果不为空则进行权限验证
64
- if (!action .value ().equals ("" )) {
65
- System .out .println (action .value ());
66
- authRuleVerify (action .value ());
67
- }
68
-
64
+ // 进行权限验证
65
+ authRuleVerify (action .value ());
69
66
}
70
67
71
68
/**
72
69
* 权限验证
70
+ *
73
71
* @param authRule
74
72
*/
75
73
private void authRuleVerify (String authRule ) {
76
- throw new JsonException (ResultEnum .AUTH_FAILED );
74
+
75
+ if (authRule != null && authRule .length () > 0 ) {
76
+ // throw new JsonException(ResultEnum.AUTH_FAILED);
77
+ }
78
+
77
79
}
78
80
79
81
}
You can’t perform that action at this time.
0 commit comments