Skip to content

Commit 7b9ed39

Browse files
committed
管理员管理界面搞定
1 parent b3e08b1 commit 7b9ed39

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

admin-api/src/main/java/com/lmxdawn/admin/aspect/AdminAuthorizeAspect.java

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public void adminLoginVerify() {
3131

3232
/**
3333
* 登录验证
34+
*
3435
* @param joinPoint
3536
*/
3637
@Before("adminLoginVerify()")
@@ -60,20 +61,21 @@ public void doAdminAuthVerify(JoinPoint joinPoint) {
6061
Method method = signature.getMethod();
6162
//得到了方,提取出他的注解
6263
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());
6966
}
7067

7168
/**
7269
* 权限验证
70+
*
7371
* @param authRule
7472
*/
7573
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+
7779
}
7880

7981
}

0 commit comments

Comments
 (0)