提交 f387db44 编写于 作者: K keyinghao

提交

上级 e94c7a4e
......@@ -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);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册