From aa7c4ba35f1201615c18e47e54899a873eea28d3 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期六, 27 六月 2020 08:44:28 +0800 Subject: [PATCH] # --- src/main/java/com/zy/common/web/AuthController.java | 7 ++++--- 1 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zy/common/web/AuthController.java b/src/main/java/com/zy/common/web/AuthController.java index 4563cc5..1ce49d5 100644 --- a/src/main/java/com/zy/common/web/AuthController.java +++ b/src/main/java/com/zy/common/web/AuthController.java @@ -49,6 +49,7 @@ private RolePermissionService rolePermissionService; @RequestMapping("/login.action") + @ManagerAuth(value = ManagerAuth.Auth.NONE, memo = "鐧诲綍") public R loginAction(String mobile, String password){ if (mobile.equals("super") && password.equals(Cools.md5(superPwd))) { Map<String, Object> res = new HashMap<>(); @@ -114,7 +115,7 @@ } @RequestMapping("/menu/auth") - @ManagerAuth + @ManagerAuth(memo = "棣栭〉鑿滃崟") public R menu(){ // 鑾峰彇鎵�鏈変竴绾ц彍鍗� List<Resource> oneLevel = resourceService.selectList(new EntityWrapper<Resource>().eq("level", 1).eq("status", 1).orderBy("sort")); @@ -145,7 +146,7 @@ // 鏄惁鎷ユ湁鏌ョ湅鏉冮檺 if (getUserId() != 9527) { - Resource view = resourceService.selectOne(new EntityWrapper<Resource>().eq("resource_id", resource.getId()).like("code", "view")); + Resource view = resourceService.selectOne(new EntityWrapper<Resource>().eq("resource_id", resource.getId()).like("code", "#view")); if (!Cools.isEmpty(view)){ RoleResource param = new RoleResource(); param.setResourceId(view.getId()); @@ -257,7 +258,7 @@ } @RequestMapping("/power/auth") - @ManagerAuth + @ManagerAuth(memo = "鎺堟潈") @Transactional public R power(Long roleId, String powers){ Role role = roleService.selectById(roleId); -- Gitblit v1.9.1