zhanglin
2023-07-23 257ce232897d0e4a232e827ba61516b747389078
ruoyi-auth/src/main/java/com/ruoyi/auth/service/SysLoginService.java
@@ -138,12 +138,12 @@
            if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
            {
                recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "对不起,您的账号已被删除",Constants.FROM_MINI_APP);
                throw new ServiceException("对不起,您的账号: 已被删除");
                throw new ServiceException("028-88888888",501);
            }
            if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
            {
                recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "用户已停用,请联系管理员",Constants.FROM_MINI_APP);
                throw new ServiceException("对不起,您的账号: 已停用");
                throw new ServiceException("028-88888888",501);
            }
            recordLogService.recordLogininfor(username, Constants.LOGIN_SUCCESS, "登录成功",Constants.FROM_MINI_APP);
        }