验证码
个人中心-菜单页 首页接口 预约到店(店铺列表) 通用商品列表 登录 退出登录 商品详情(缺少评价部分)
This commit is contained in:
@@ -34,13 +34,16 @@ public class LoginFilter implements Filter {
|
||||
*/
|
||||
private static final List<String> NOT_LOGIN_URL = Arrays.asList(
|
||||
// 忽略静态资源
|
||||
"css/**",
|
||||
"js/**",
|
||||
"cashierService/phoneValidateCode",//验证码
|
||||
"cashierService/location/**",//高德 获取行政区域
|
||||
"cashierService/home/homePageUp",//首页上半
|
||||
"cashierService/home",//首页
|
||||
"cashierService/login/**"//登录部分接口不校验
|
||||
// "css/**",
|
||||
// "js/**",
|
||||
// "cashierService/phoneValidateCode",//验证码
|
||||
// "cashierService/tbPlatformDict",//获取菜单
|
||||
// "cashierService/location/**",//高德 获取行政区域
|
||||
// "cashierService/home/homePageUp",//首页上半
|
||||
// "cashierService/home",//首页
|
||||
// "cashierService/distirict/subShopList",//首页
|
||||
// "cashierService/product/productInfo",//商品详情
|
||||
// "cashierService/login/**"//登录部分接口不校验
|
||||
);
|
||||
|
||||
@Autowired
|
||||
@@ -62,8 +65,9 @@ public class LoginFilter implements Filter {
|
||||
}
|
||||
// 获取请求地址
|
||||
String url = request.getRequestURI();
|
||||
|
||||
// 不需要授权的接口直接访问的地址
|
||||
if (containsUrl(NOT_LOGIN_URL, url)) {
|
||||
if (!containsUrl(NOT_LOGIN_URL, url)) {
|
||||
chain.doFilter(req, resp);
|
||||
return;
|
||||
}
|
||||
@@ -130,6 +134,9 @@ public class LoginFilter implements Filter {
|
||||
return true;
|
||||
}
|
||||
} else {
|
||||
if (url.equals(s)) {
|
||||
return true;
|
||||
}
|
||||
if (url.equals("/" + s)) {
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user