|
|
@@ -205,6 +205,7 @@ public class IdentityAuthService {
|
|
|
try {
|
|
|
List<IdentityAuth> list = identityAuthRepo.findByStatusAndAutoValidated(AuthStatus.PENDING, false);
|
|
|
list.parallelStream().forEach(identityAuth -> {
|
|
|
+ log.info("实名 {}", identityAuth.getRealName());
|
|
|
boolean success = false;
|
|
|
String reason = null;
|
|
|
User user = userRepo.findById(identityAuth.getUserId()).orElseThrow(new BusinessException("用户不存在"));
|
|
|
@@ -238,12 +239,14 @@ public class IdentityAuthService {
|
|
|
validate(identityAuth.getRealName(), user.getPhone(), identityAuth.getIdNo());
|
|
|
success = true;
|
|
|
} catch (Exception e) {
|
|
|
+ log.error("自动实名出错", e);
|
|
|
reason = e.getMessage();
|
|
|
}
|
|
|
}
|
|
|
audit(identityAuth.getId(), success ? AuthStatus.SUCCESS : AuthStatus.PENDING, reason);
|
|
|
});
|
|
|
- } catch (Exception ignored) {
|
|
|
+ } catch (Exception e) {
|
|
|
+ log.error("批量自动实名出错", e);
|
|
|
}
|
|
|
}
|
|
|
}
|