菜单鉴权优化

This commit is contained in:
sxu 2024-10-10 10:35:22 +08:00
parent 2ac4a5aae6
commit 19f76face0
1 changed files with 2 additions and 4 deletions

View File

@ -61,10 +61,8 @@ public class PreAuthorizeAspect
//获取请求参数
boolean needPermission = true;
Object[] args = joinPoint.getArgs();
String argStr = JSON.toJSONString(args);
JSONArray jsonArray = JSONUtil.parseArray(argStr);
for (int i = 0; i < jsonArray.size(); i++) {
Object obj = jsonArray.getObj(i);
for (int i = 0; i < args.length; i++) {
Object obj = args[i];
if (Objects.nonNull(obj) && obj instanceof JSONObject) {
JSONObject jsonObject = (JSONObject) obj;
if ("1".equals(jsonObject.getStr("skipPermission"))) {