| ... | ... | @@ -172,20 +172,27 @@ public class WrapperResponseGlobalFilter implements GlobalFilter, Ordered { | 
|  |  | String redisKey = "ROLE_anonymous_routers"; | 
|  |  | String json = stringRedisTemplate.opsForValue().get(redisKey); | 
|  |  | if(json!=null && !json.isEmpty()){ | 
|  |  | JSONObject jsonObject = JSONObject.parseObject(json); | 
|  |  | List<ROLE> roleList = JSONObject.toJavaObject(jsonObject,List.class); | 
|  |  | if(roleList!=null && !roleList.isEmpty()){ | 
|  |  | for (ROLE role: roleList){ | 
|  |  | List<PERMISSION>  permissionList= role.getPermissions(); | 
|  |  | if(permissionList!=null && !permissionList.isEmpty()){ | 
|  |  | for (PERMISSION permission : permissionList) { | 
|  |  | if (pathMatcher.match(permission.getUrl(), request.getPath().toString())) { | 
|  |  | return true; | 
|  |  | } | 
|  |  | } | 
|  |  | } | 
|  |  | try{ | 
|  |  | JSONObject jsonObject = JSONObject.parseObject(json); | 
|  |  | List<ROLE> roleList = JSONObject.toJavaObject(jsonObject,List.class); | 
|  |  | if(roleList!=null && !roleList.isEmpty()){ | 
|  |  | for (ROLE role: roleList){ | 
|  |  | List<PERMISSION>  permissionList= role.getPermissions(); | 
|  |  | if(permissionList!=null && !permissionList.isEmpty()){ | 
|  |  | for (PERMISSION permission : permissionList) { | 
|  |  | if (pathMatcher.match(permission.getUrl(), request.getPath().toString())) { | 
|  |  | return true; | 
|  |  | } | 
|  |  | } | 
|  |  | } | 
|  |  | } | 
|  |  | } | 
|  |  | }catch (Exception e){ | 
|  |  | e.printStackTrace(); | 
|  |  | return false; | 
|  |  | } | 
|  |  |  | 
|  |  |  | 
|  |  | } | 
|  |  | return false; | 
|  |  | } | 
... | ... |  |