手机号校验码-checkPhoneFormat-先校验手机区号是否是手机号前缀-取反
This commit is contained in:
@@ -264,7 +264,7 @@ public class CommonUtil {
|
||||
return false;
|
||||
}
|
||||
String realPhone = phone;
|
||||
if (realPhone.startsWith(areaCode)) {
|
||||
if (!realPhone.startsWith(areaCode)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user