Commit 8eb0135b277571e9e65275379470bac3e7090b6d

Authored by lifeng
1 parent 6fa74680

'修改readme中路径地址'

README.md
@@ -6,8 +6,8 @@ itcast-authority 权限管家- [官方主页](https://pip.itcast.cn/java-qxgj) @@ -6,8 +6,8 @@ itcast-authority 权限管家- [官方主页](https://pip.itcast.cn/java-qxgj)
6 6
7 - [后端Gitee地址](https://gitee.com/itcastopen/itcast-authority.git) 7 - [后端Gitee地址](https://gitee.com/itcastopen/itcast-authority.git)
8 - [后端Github地址](https://github.com/itcastopen/itcast-authority.git) 8 - [后端Github地址](https://github.com/itcastopen/itcast-authority.git)
9 -- [前端Gitee地址](https://gitee.com/itcastopen/itcast-authority-vue.git)  
10 -- [前端Github地址](https://github.com/itcastopen/itcast-authority-vue.git) 9 +- [前端Gitee地址](https://gitee.com/itcastopen/itcast-authority-web.git)
  10 +- [前端Github地址](https://github.com/itcastopen/itcast-authority-web.git)
11 11
12 12
13 **在线演示** 13 **在线演示**
itcast-auth/itcast-auth-server/src/main/java/com/itheima/authority/biz/service/auth/impl/AuthManager.java
@@ -170,7 +170,7 @@ public class AuthManager { @@ -170,7 +170,7 @@ public class AuthManager {
170 return R.fail(R.FAIL_CODE, "用户没有当前应用的权限"); 170 return R.fail(R.FAIL_CODE, "用户没有当前应用的权限");
171 } 171 }
172 172
173 - // 缓存token 缓存时间要超过token 失效时间 173 + // 查找用户的资源权限编码
174 List<Resource> resourceList = this.resourceService.findVisibleResource(ResourceQueryDTO.builder().userId(user.getId()).build()); 174 List<Resource> resourceList = this.resourceService.findVisibleResource(ResourceQueryDTO.builder().userId(user.getId()).build());
175 log.info("resourceList {} {}", resourceList.size(), resourceList); 175 log.info("resourceList {} {}", resourceList.size(), resourceList);
176 List<String> permissionsList = resourceList.stream().filter(item -> item != null).map(Resource::getCode).collect(Collectors.toList()); 176 List<String> permissionsList = resourceList.stream().filter(item -> item != null).map(Resource::getCode).collect(Collectors.toList());
@@ -34,10 +34,10 @@ @@ -34,10 +34,10 @@
34 <!--当前环境--> 34 <!--当前环境-->
35 <pom.profile.name>dev</pom.profile.name> 35 <pom.profile.name>dev</pom.profile.name>
36 <!--Nacos配置中心地址--> 36 <!--Nacos配置中心地址-->
37 - <pom.nacos.ip>localhost</pom.nacos.ip> 37 + <pom.nacos.ip>192.168.138.100</pom.nacos.ip>
38 <pom.nacos.port>8848</pom.nacos.port> 38 <pom.nacos.port>8848</pom.nacos.port>
39 <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空--> 39 <!--Nacos配置中心命名空间,用于支持多环境.这里必须使用ID,不能使用名称,默认为空-->
40 - <pom.nacos.namespace>0d85ebfd-8311-42d9-a856-5ac5e124f73d</pom.nacos.namespace> 40 + <pom.nacos.namespace>9c3cb944-d5b3-4c87-a32e-170db76fae01</pom.nacos.namespace>
41 41
42 </properties> 42 </properties>
43 </profile> 43 </profile>