Pre Merge pull request !178 from 栗子/master

pull/178/MERGE
栗子 3 years ago committed by Gitee
commit a185dd9fe5
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -59,12 +59,12 @@ public class SysLoginService
// 查询用户信息
R<LoginUser> userResult = remoteUserService.getUserInfo(username, SecurityConstants.INNER);
if (R.FAIL == userResult.getCode())
if (StringUtils.isNull(userResult) || R.FAIL == userResult.getCode())
{
throw new ServiceException(userResult.getMsg());
}
if (StringUtils.isNull(userResult) || StringUtils.isNull(userResult.getData()))
if (StringUtils.isNull(userResult.getData()))
{
recordLogService.recordLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在");
throw new ServiceException("登录用户:" + username + " 不存在");

Loading…
Cancel
Save