|
|
|
@@ -79,11 +79,13 @@ public class AuthorizationInterceptor extends HandlerInterceptorAdapter { |
|
|
|
throw new MallinkException(ErrorCode.NET_TOKEN_INVALID.getCode(), "URL:" + request.getRequestURL() + " token失效,请重新登录"); |
|
|
|
} |
|
|
|
|
|
|
|
tenantId = user.getTenantId(); |
|
|
|
parenTenantId = user.getParentTenantId(); |
|
|
|
request.setAttribute(Constant.LOGIN_USER_KEY, user.getId()); |
|
|
|
request.setAttribute(Constant.TENANT_ID, user.getTenantId()); |
|
|
|
request.setAttribute(Constant.TENANT_ID, tenantId); |
|
|
|
request.setAttribute(Constant.REQUEST_C_USER_KEY, user); |
|
|
|
if (StringUtils.isNotBlank(user.getParentTenantId())) { |
|
|
|
request.setAttribute(Constant.PARENT_TENANT_ID, user.getParentTenantId()); |
|
|
|
if (StringUtils.isNotBlank(parenTenantId)) { |
|
|
|
request.setAttribute(Constant.PARENT_TENANT_ID, parenTenantId); |
|
|
|
} |
|
|
|
|
|
|
|
}else if (!StringUtils.isBlank(bid)) { |
|
|
|
|