xiongzhu 4 лет назад
Родитель
Сommit
c12120b4b2
1 измененных файлов с 0 добавлено и 2 удалено
  1. 0 2
      src/main/java/com/izouma/nineth/service/IdentityAuthService.java

+ 0 - 2
src/main/java/com/izouma/nineth/service/IdentityAuthService.java

@@ -153,8 +153,6 @@ public class IdentityAuthService {
                     reason = "同一身份证注册超过3个";
                 } else {
                     try {
-                        User user = userRepo.findById(identityAuth.getUserId())
-                                .orElseThrow(new BusinessException("用户不存在"));
                         validate(identityAuth.getRealName(), user.getPhone(), identityAuth.getIdNo());
                         success = true;
                     } catch (Exception e) {