[修改] 修改用户 ,手机号验证正则
This commit is contained in:
@@ -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("手机号不符合规则!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user