|
@@ -54,9 +54,9 @@ public class UserAuthService {
|
|
|
|
|
|
List<String> newRoleCodeList = new ArrayList<>();
|
|
|
for (String roleCode : roleCodeList) {
|
|
|
- if (!redisService.hasKey(RedisCacheConstant.ROLE_PERM_KEY_PRE + roleCode)) {
|
|
|
- String newRoleCode = StringUtils.hasText(tenantCode) ? tenantCode + "_" + roleCode : roleCode;
|
|
|
- newRoleCodeList.add(newRoleCode);
|
|
|
+ String newRoleCode = StringUtils.hasText(tenantCode) ? tenantCode + "_" + roleCode : roleCode;
|
|
|
+ newRoleCodeList.add(newRoleCode);
|
|
|
+ if (!redisService.hasKey(RedisCacheConstant.ROLE_PERM_KEY_PRE + newRoleCode)) {
|
|
|
List<String> permCodeList = this.getPermCodeList(roleCode);
|
|
|
if (!CollectionUtils.isEmpty(permCodeList)) {
|
|
|
// 永久期限
|