|  |  |  | 
|---|
|  |  |  | private static final int DEFAULT_2 = 2; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | public static final String USER_POWER_REDISKEY = "USER_POWER_"; | 
|---|
|  |  |  | public static final String USER_POWER_REDISKEY_PC = "USER_POWER_PC"; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | SysFunctionService sysFunctionService; | 
|---|
|  |  |  | 
|---|
|  |  |  |  | 
|---|
|  |  |  | SysUsers sysUser = WebUtil.getSessionAttribute(MatrixConstance.LOGIN_KEY); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | String redisKey = USER_POWER_REDISKEY + SecureUtil.md5(sysUser.getSuId()+""); | 
|---|
|  |  |  | String redisKey = USER_POWER_REDISKEY_PC + SecureUtil.md5(sysUser.getSuId()+""); | 
|---|
|  |  |  | String cachedValue = redisClient.getCachedValue(redisKey); | 
|---|
|  |  |  | if (StringUtils.isNotBlank(cachedValue)) { | 
|---|
|  |  |  | //从缓存中获取用户权限 | 
|---|