mirror of
https://gitee.com/y_project/RuoYi-Cloud.git
synced 2026-01-26 11:51:55 +08:00
Merge remote-tracking branch 'upstream/master' into dev_lcw
# Conflicts: # pom.xml # ruoyi-common/ruoyi-common-core/pom.xml # ruoyi-common/ruoyi-common-swagger/pom.xml # ruoyi-gateway/pom.xml # ruoyi-modules/ruoyi-file/pom.xml # ruoyi-modules/ruoyi-gen/pom.xml # ruoyi-modules/ruoyi-job/pom.xml # ruoyi-modules/ruoyi-system/pom.xml # sql/ry_config_20240902.sql
This commit is contained in:
@@ -74,17 +74,11 @@ public class SysLoginService
|
||||
// 查询用户信息
|
||||
R<LoginUser> userResult = remoteUserService.getUserInfo(username, SecurityConstants.INNER);
|
||||
|
||||
if (StringUtils.isNull(userResult) || StringUtils.isNull(userResult.getData()))
|
||||
{
|
||||
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在");
|
||||
throw new ServiceException("登录用户:" + username + " 不存在");
|
||||
}
|
||||
|
||||
if (R.FAIL == userResult.getCode())
|
||||
{
|
||||
throw new ServiceException(userResult.getMsg());
|
||||
}
|
||||
|
||||
|
||||
LoginUser userInfo = userResult.getData();
|
||||
SysUser user = userResult.getData().getSysUser();
|
||||
if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
|
||||
|
||||
Reference in New Issue
Block a user