mirror of
https://gitee.com/dromara/RuoYi-Cloud-Plus.git
synced 2026-04-26 12:09:36 +08:00
reset 回滚三方授权修改
This commit is contained in:
@@ -242,17 +242,17 @@ public class SysLoginService {
|
||||
*
|
||||
* @param tenantId 租户ID
|
||||
*/
|
||||
public RemoteTenantVo checkTenant(String tenantId) {
|
||||
public void checkTenant(String tenantId) {
|
||||
if (!TenantHelper.isEnable()) {
|
||||
return null;
|
||||
return;
|
||||
}
|
||||
if (TenantConstants.DEFAULT_TENANT_ID.equals(tenantId)) {
|
||||
return;
|
||||
}
|
||||
if (StringUtils.isBlank(tenantId)) {
|
||||
throw new TenantException("tenant.number.not.blank");
|
||||
}
|
||||
RemoteTenantVo tenant = remoteTenantService.queryByTenantId(tenantId);
|
||||
if (TenantConstants.DEFAULT_TENANT_ID.equals(tenantId)) {
|
||||
return tenant;
|
||||
}
|
||||
if (ObjectUtil.isNull(tenant)) {
|
||||
log.info("登录租户:{} 不存在.", tenantId);
|
||||
throw new TenantException("tenant.not.exists");
|
||||
@@ -264,6 +264,5 @@ public class SysLoginService {
|
||||
log.info("登录租户:{} 已超过有效期.", tenantId);
|
||||
throw new TenantException("tenant.expired");
|
||||
}
|
||||
return tenant;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user