ct před 5 dny
rodič
revize
bfc9d96757

+ 22 - 18
fs-user-app/src/main/java/com/fs/app/controller/PatientController.java

@@ -94,15 +94,17 @@ public class PatientController extends  AppBaseController {
             return R.error("身份证号码不合法");
         }
         if (idCardNumber.length() != 18) {
-            //大陆身份证是18位
-            if (isIdVerification != 1) {
-                return R.error("身份证号码不合法");
-            } else {
-                //非大陆身份校验需要手机号 手机号只支持大陆的办理的手机号
-                if (StringUtils.isBlank(mobile)){
-                    R.error("手机号不能为空");
-                }
-            }
+//            //大陆身份证是18位
+//            if (isIdVerification != 1) {
+//                return R.error("身份证号码不合法");
+//            } else {
+//                //非大陆身份校验需要手机号 手机号只支持大陆的办理的手机号
+//                if (StringUtils.isBlank(mobile)){
+//                    R.error("手机号不能为空");
+//                }
+//            }
+            //暂时仅支持大陆身份证
+            return  R.error("身份证号码不合法");
         } else {
             String regex = "\\d{17}[0-9Xx]";
             if (!Pattern.matches(regex, idCardNumber)) {
@@ -195,15 +197,17 @@ public class PatientController extends  AppBaseController {
             return R.error("身份证号码不合法");
         }
         if (idCardNumber.length() != 18) {
-            //大陆身份证是18位
-            if (isIdVerification != 1) {
-                return R.error("身份证号码不合法");
-            } else {
-                //非大陆身份校验需要手机号 手机号只支持大陆的办理的手机号
-                if (StringUtils.isBlank(mobile)){
-                    R.error("手机号不能为空");
-                }
-            }
+//            //大陆身份证是18位
+//            if (isIdVerification != 1) {
+//                return R.error("身份证号码不合法");
+//            } else {
+//                //非大陆身份校验需要手机号 手机号只支持大陆的办理的手机号
+//                if (StringUtils.isBlank(mobile)){
+//                    R.error("手机号不能为空");
+//                }
+//            }
+            //暂时仅支持大陆身份证
+            return  R.error("身份证号码不合法");
         } else {
             String regex = "\\d{17}[0-9Xx]";
             if (!Pattern.matches(regex, idCardNumber)) {