|
@@ -42,12 +42,12 @@ public class UserDetailsServiceImpl implements UserDetailsService
|
|
|
log.info("登录用户:{} 不存在.", username);
|
|
|
throw new ServiceException("登录用户:" + username + " 不存在");
|
|
|
}
|
|
|
- else if (UserStatus.DELETED.getCode().equals(user.getDelFlag()))
|
|
|
+ else if (UserStatus.DELETED.getCode().equals(user.getDelFlag().toString()))
|
|
|
{
|
|
|
log.info("登录用户:{} 已被删除.", username);
|
|
|
throw new ServiceException("对不起,您的账号:" + username + " 已被删除");
|
|
|
}
|
|
|
- else if (UserStatus.DISABLE.getCode().equals(user.getStatus()))
|
|
|
+ else if (UserStatus.DISABLE.getCode().equals(user.getStatus().toString()))
|
|
|
{
|
|
|
log.info("登录用户:{} 已被停用.", username);
|
|
|
throw new ServiceException("对不起,您的账号:" + username + " 已停用");
|