Forráskód Böngészése

身份证

(cherry picked from commit 27993c34114307c4af1ad8efc77afb4edc881c4e)
xiongzhu 3 éve
szülő
commit
aec05a05db

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

@@ -126,7 +126,7 @@ public class IdentityAuthService {
                 boolean success = false;
                 String reason = null;
 
-                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())) {
+                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, "身份证格式错误");
                     return;
                 } else {