Commit 2e7eafd0 by guojuxing

2020年6月最新大陆手机号娇艳规则

parent 78fd2d0d
......@@ -140,7 +140,7 @@ public class UserApiServiceImpl implements UserApiService{
}
private static boolean isPhone(String phone) {
String regex = "^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(17[013678])|(18[0,5-9]))\\d{8}$";
String regex = "^((13[0-9])|(14[0|5|6|7|9])|(15[0-3])|(15[5-9])|(16[6|7])|(17[2|3|5|6|7|8])|(18[0-9])|(19[1|8|9]))\\d{8}$";
if (StringUtils.isBlank(phone) || phone.length() != 11) {
return false;
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment