瀏覽代碼

身份证

xiongzhu 4 年之前
父節點
當前提交
27993c3411
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      src/main/java/com/izouma/nineth/service/IdentityAuthService.java

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

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