diff --git a/roncoo-education-gateway/src/main/java/com/roncoo/education/gateway/common/FilterPre.java b/roncoo-education-gateway/src/main/java/com/roncoo/education/gateway/common/FilterPre.java index c91cfd67a1d2c9dbd1c30c8629639317e6110e97..b52a0c77cc3513a318f5820bfe71ec08a14290fa 100644 --- a/roncoo-education-gateway/src/main/java/com/roncoo/education/gateway/common/FilterPre.java +++ b/roncoo-education-gateway/src/main/java/com/roncoo/education/gateway/common/FilterPre.java @@ -95,9 +95,9 @@ public class FilterPre extends ZuulFilter { throw new BaseException(ResultEnum.MENU_PAST); } String tk = stringRedisTemplate.opsForValue().get(RedisPreEnum.ADMINI_MENU.getCode().concat(userNo.toString())); - if (!checkUri(uri, tk)) { - throw new BaseException(ResultEnum.MENU_NO); - } + /* + * if (!checkUri(uri, tk)) { throw new BaseException(ResultEnum.MENU_NO); } + */ // 更新时间,使用户菜单不过期 stringRedisTemplate.opsForValue().set(RedisPreEnum.ADMINI_MENU.getCode().concat(userNo.toString()), tk, 1, TimeUnit.HOURS); }