add 企业联系人登录

This commit is contained in:
lijiarao
2021-09-22 21:12:40 +08:00
parent 82a0c21ada
commit d0f4716cc3
10 changed files with 328 additions and 7 deletions
@@ -90,7 +90,7 @@ public class JwtUtil {
String accessToken = request.getHeader("X-Access-Token");
String username = getUsername(accessToken);
if (oConvertUtils.isEmpty(username)) {
throw new JeroBootException("未获取到用户");
throw new JeroBootException("未获取到用户");
}
return username;
}
@@ -114,6 +114,7 @@ public class TokenUtils {
// 查询用户信息
LoginUser user = commonAPI.getUserByName(username);
if (user == null) {
throw new AuthenticationException("用户不存在!");
}
// 判断用户状态
@@ -107,7 +107,7 @@ public class ShiroConfig {
filterChainDefinitionMap.put("/company/payContactsManagement/queryByName","anon");//联系人校验
filterChainDefinitionMap.put("/sys/common/download/**","anon");//下载接口
filterChainDefinitionMap.put("/sys/oss/file/queryById","anon");//通过id查询文件
filterChainDefinitionMap.put("/company/login", "anon"); //登录接口排除
filterChainDefinitionMap.put("/", "anon");
filterChainDefinitionMap.put("/doc.html", "anon");