[修改] 修改用户 ,手机号验证正则

This commit is contained in:
bupengxiang
2023-05-18 09:50:32 +08:00
parent abad378fae
commit 55cfac6509
@@ -99,7 +99,7 @@ public class UserEOController extends BaseController<UserEO> {
}
if (StringUtils.isNotBlank(eo.getCellPhoneNumber())) {
if (!eo.getCellPhoneNumber().matches("^[1][3,4,5,7,8,9][0-9]{9}$")) {
if (!eo.getCellPhoneNumber().matches("^(?:\\+86)?-(1[3456789]\\d)\\d{8}$")) {
return Result.error("手机号不符合规则!");
}
}