Commit 61d759f5 authored by tanyang's avatar tanyang

修复租户登录bug

parent 9e6c4c2a
...@@ -118,6 +118,9 @@ public class SysLoginService { ...@@ -118,6 +118,9 @@ public class SysLoginService {
throw new UserException("user.not.exists", username); throw new UserException("user.not.exists", username);
} }
tenantId = sysUser.getTenantId(); tenantId = sysUser.getTenantId();
}else {
SysUser sysUser = sysUsers.get(0);
tenantId = sysUser.getTenantId();
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment