|
|
@@ -529,7 +529,8 @@ public class AuthServiceImpl implements AuthService {
|
|
529
|
529
|
}
|
|
530
|
530
|
|
|
531
|
531
|
List<UserCollectLogin> userCollectLogins = userCollectLoginMapper.selectList(new LambdaQueryWrapper<UserCollectLogin>()
|
|
532
|
|
- .eq(UserCollectLogin::getPhone, phone));
|
|
|
532
|
+ .eq(UserCollectLogin::getPhone, phone)
|
|
|
533
|
+ .eq(UserCollectLogin::getType,1));
|
|
533
|
534
|
if (CollectionUtil.isEmpty(userCollectLogins)) {
|
|
534
|
535
|
//返回用户信息
|
|
535
|
536
|
throw new CommonException(AuthExceptionEnum.PHONE_ERROR.getValue());
|
|
|
@@ -588,7 +589,8 @@ public class AuthServiceImpl implements AuthService {
|
|
588
|
589
|
|
|
589
|
590
|
|
|
590
|
591
|
List<UserCollectLogin> userCollectLogins = userCollectLoginMapper.selectList(new LambdaQueryWrapper<UserCollectLogin>()
|
|
591
|
|
- .eq(UserCollectLogin::getPhone, phone));
|
|
|
592
|
+ .eq(UserCollectLogin::getPhone, phone)
|
|
|
593
|
+ .in(UserCollectLogin::getType,2,3));
|
|
592
|
594
|
if (CollectionUtil.isEmpty(userCollectLogins)) {
|
|
593
|
595
|
//返回用户信息
|
|
594
|
596
|
throw new CommonException(AuthExceptionEnum.USER_ERR.getValue());
|