|
|
@@ -243,7 +243,10 @@ public class IdentityAuthService {
|
|
|
} else {
|
|
|
LocalDate birth = DateTimeUtils.toLocalDate(identityAuth.getIdNo().substring(6, 14), "yyyyMMdd");
|
|
|
long age = ChronoUnit.YEARS.between(birth, LocalDate.now());
|
|
|
- if (age < 18) {
|
|
|
+ if (user.getPhone().startsWith("170")) {
|
|
|
+ result.put("status", AuthStatus.FAIL);
|
|
|
+ result.put("reason", "虚拟号");
|
|
|
+ } else if (age < 18) {
|
|
|
result.put("status", AuthStatus.FAIL);
|
|
|
result.put("reason", "未满18岁");
|
|
|
} else if (age > 60) {
|