去除多余的判断代码

如果63行执行了,`userResult`一定不是null了
pull/126/head
runphp 4 years ago committed by Gitee
parent 43f1681f51
commit a46ccc5a59
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

@ -65,7 +65,7 @@ public class SysLoginService
throw new ServiceException(userResult.getMsg());
}
if (StringUtils.isNull(userResult) || StringUtils.isNull(userResult.getData()))
if (StringUtils.isNull(userResult.getData()))
{
recordLogininfor(username, Constants.LOGIN_FAIL, "登录用户不存在");
throw new ServiceException("登录用户:" + username + " 不存在");

Loading…
Cancel
Save