|  |  | package com.example.gateway.filter; | 
|  |  |  | 
|  |  | import com.alibaba.fastjson.JSON; | 
|  |  | import com.alibaba.fastjson.JSONArray; | 
|  |  | import com.alibaba.fastjson.JSONObject; | 
|  |  | import com.example.gateway.model.PERMISSION; | 
|  |  | import com.example.gateway.model.ROLE; | 
| ... | ... | @@ -173,7 +174,7 @@ public class WrapperResponseGlobalFilter implements GlobalFilter, Ordered { | 
|  |  | String json = stringRedisTemplate.opsForValue().get(redisKey); | 
|  |  | if(json!=null && !json.isEmpty()){ | 
|  |  | try{ | 
|  |  | JSONObject jsonObject = JSONObject.parseObject(json); | 
|  |  | JSONArray jsonObject = JSONArray.parseArray(json); | 
|  |  | List<ROLE> roleList = JSONObject.toJavaObject(jsonObject,List.class); | 
|  |  | if(roleList!=null && !roleList.isEmpty()){ | 
|  |  | for (ROLE role: roleList){ | 
... | ... |  |