菜单鉴权优化
This commit is contained in:
parent
2ac4a5aae6
commit
19f76face0
|
|
@ -61,10 +61,8 @@ public class PreAuthorizeAspect
|
||||||
//获取请求参数
|
//获取请求参数
|
||||||
boolean needPermission = true;
|
boolean needPermission = true;
|
||||||
Object[] args = joinPoint.getArgs();
|
Object[] args = joinPoint.getArgs();
|
||||||
String argStr = JSON.toJSONString(args);
|
for (int i = 0; i < args.length; i++) {
|
||||||
JSONArray jsonArray = JSONUtil.parseArray(argStr);
|
Object obj = args[i];
|
||||||
for (int i = 0; i < jsonArray.size(); i++) {
|
|
||||||
Object obj = jsonArray.getObj(i);
|
|
||||||
if (Objects.nonNull(obj) && obj instanceof JSONObject) {
|
if (Objects.nonNull(obj) && obj instanceof JSONObject) {
|
||||||
JSONObject jsonObject = (JSONObject) obj;
|
JSONObject jsonObject = (JSONObject) obj;
|
||||||
if ("1".equals(jsonObject.getStr("skipPermission"))) {
|
if ("1".equals(jsonObject.getStr("skipPermission"))) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue