手机号校验码-checkPhoneFormat-先校验手机区号是否是手机号前缀-取反

This commit is contained in:
khalil
2025-06-04 21:42:55 +08:00
parent 9029f5255a
commit 8c83a07abe

View File

@@ -264,7 +264,7 @@ public class CommonUtil {
return false;
}
String realPhone = phone;
if (realPhone.startsWith(areaCode)) {
if (!realPhone.startsWith(areaCode)) {
return false;
}