|
@@ -83,10 +83,6 @@ public class TokenInterceptor implements HandlerInterceptor {
|
|
|
userInfo.setUserName(userName);
|
|
|
userInfo.setRoleCode(roleCode);
|
|
|
userUtil.setUser(userInfo);
|
|
|
- if(Objects.nonNull(userMap.get("factoryId"))) {
|
|
|
- Long factoryId = userMap.get("factoryId").asLong();
|
|
|
- userInfo.setFactoryId(factoryId);
|
|
|
- }
|
|
|
userUtil.setUser(userInfo);
|
|
|
} catch (JWTDecodeException j) {
|
|
|
throw new BusinessException(401,"用户认证失败");
|