|
|
@@ -128,7 +128,11 @@ public class IdentityAuthService {
|
|
|
list.parallelStream().forEach(identityAuth -> {
|
|
|
boolean success = false;
|
|
|
String reason = null;
|
|
|
-
|
|
|
+ User user = userRepo.findById(identityAuth.getUserId()).orElseThrow(new BusinessException("用户不存在"));
|
|
|
+ if (user.getAuthStatus() == AuthStatus.SUCCESS) {
|
|
|
+ audit(identityAuth.getId(), AuthStatus.SUCCESS, null);
|
|
|
+ return;
|
|
|
+ }
|
|
|
if (!Pattern.matches("[1-9]{1}[0-9]{5}(19|20)[0-9]{2}((0[1-9]{1})|(1[0-2]{1}))((0[1-9]{1})|([1-2]{1}[0-9]{1}|(3[0-1]{1})))[0-9]{3}[0-9x]{1}", identityAuth.getIdNo()
|
|
|
.toLowerCase())) {
|
|
|
audit(identityAuth.getId(), AuthStatus.FAIL, "身份证格式错误");
|