日志打印更完善
This commit is contained in:
parent
450041bb02
commit
f850e4adaa
@ -94,16 +94,16 @@ public class ManagerAuthenticationFilter extends BasicAuthenticationFilter {
|
||||
match(permission.get(PermissionEnum.QUERY.name()), requestUrl)) {
|
||||
} else {
|
||||
ResponseUtil.output(response, ResponseUtil.resultMap(false, 400, "权限不足"));
|
||||
throw new NoPermissionException("权限不足");
|
||||
log.error("当前请求路径:{},所拥有权限:{}", requestUrl, permission);
|
||||
throw new NoPermissionException("权限不足-" + requestUrl);
|
||||
}
|
||||
}
|
||||
//非get请求(数据操作) 判定鉴权
|
||||
else {
|
||||
if (PatternMatchUtils.simpleMatch(permission.get(PermissionEnum.SUPER.name()).toArray(new String[0]), requestUrl)) {
|
||||
|
||||
} else {
|
||||
if (!match(permission.get(PermissionEnum.SUPER.name()), requestUrl)) {
|
||||
ResponseUtil.output(response, ResponseUtil.resultMap(false, 400, "权限不足"));
|
||||
throw new NoPermissionException("权限不足");
|
||||
log.error("当前请求路径:{},所拥有权限:{}", requestUrl, permission);
|
||||
throw new NoPermissionException("权限不足-" + requestUrl);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user