|
@@ -4,6 +4,7 @@ import cn.com.qmth.examcloud.api.commons.enums.DataRuleType;
|
|
|
import cn.com.qmth.examcloud.api.commons.security.bean.*;
|
|
|
import cn.com.qmth.examcloud.api.commons.security.enums.RoleMeta;
|
|
|
import cn.com.qmth.examcloud.commons.util.RegExpUtil;
|
|
|
+import cn.com.qmth.examcloud.support.CacheConstants;
|
|
|
import cn.com.qmth.examcloud.support.cache.CacheHelper;
|
|
|
import cn.com.qmth.examcloud.support.cache.bean.AppCacheBean;
|
|
|
import cn.com.qmth.examcloud.web.redis.RedisClient;
|
|
@@ -101,7 +102,7 @@ public class ExamCloudResourceManager implements ResourceManager {
|
|
|
Set<String> rolePrivilegeList = Sets.newHashSet();
|
|
|
Long rootOrgId = user.getRootOrgId();
|
|
|
for (Role role : roleList) {
|
|
|
- String key = "$_P_" + rootOrgId + "_" + role.getRoleId();
|
|
|
+ String key = CacheConstants.CACHE_B_ROLE_PRIVILEGE + rootOrgId + "_" + role.getRoleId();
|
|
|
String rolePrivileges = redisClient.get(key, String.class);
|
|
|
|
|
|
List<String> rpList = RegExpUtil.findAll(rolePrivileges, "\\w+");
|