From df89a5b0c2e19595c7c045bbdfae8a5e86629eb5 Mon Sep 17 00:00:00 2001 From: Fixiaobai <fixiaobai@163.com> Date: 星期四, 31 八月 2023 16:02:43 +0800 Subject: [PATCH] 修改委托信息 --- sys/src/main/java/com/yuanchu/limslaboratory/aop/AuthRequestAspect.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/src/main/java/com/yuanchu/limslaboratory/aop/AuthRequestAspect.java b/sys/src/main/java/com/yuanchu/limslaboratory/aop/AuthRequestAspect.java index aab1b80..54e2372 100644 --- a/sys/src/main/java/com/yuanchu/limslaboratory/aop/AuthRequestAspect.java +++ b/sys/src/main/java/com/yuanchu/limslaboratory/aop/AuthRequestAspect.java @@ -37,7 +37,8 @@ public void pointCut() { } - private final static String ADMIN = "c3284d0f94606de1fd2af172aba15bf3"; + private final static String ADMIN = "f5c8bcb7d5a0fd27e2323280f7e98cad"; + @Resource private UserService userService; @@ -96,10 +97,10 @@ boolean b = roleService.hasUrl(String.valueOf(urlType.get("type")), String.valueOf(urlType.get("menuId")), roleId); if (!b) { log.warn("鐢ㄦ埛/id锛�" + userInfo.get("name") + "/" + userInfo.get("id") + "---------鏉冮檺涓嶈冻锛屽凡鎷︽埅锛�"); - //throw new AuthException("400","鏃犳潈闄�"); + throw new AuthException("400","鏃犳潈闄�"); } } else { - throw new AuthException("401", "鐧婚檰杩囨湡"); + throw new AuthException("401", "鐧婚檰杩囨湡!"); } } -- Gitblit v1.9.3