add 企业联系人登录
This commit is contained in:
+1
-1
@@ -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("用户不存在!");
|
||||
}
|
||||
// 判断用户状态
|
||||
|
||||
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user