Merge branch 'lixuetao'
This commit is contained in:
@@ -99,7 +99,8 @@ public class UserEOController extends BaseController<UserEO> {
|
||||
}
|
||||
|
||||
if (StringUtils.isNotBlank(eo.getCellPhoneNumber())) {
|
||||
if (!eo.getCellPhoneNumber().matches("^(?:\\+86)?-(1[3456789]\\d)\\d{8}$")) {
|
||||
if (!(eo.getCellPhoneNumber().matches("^(?:\\+86)?-(1[3456789]\\d)\\d{8}$") ||
|
||||
eo.getCellPhoneNumber().matches("^1(3\\d|4[5-9]|5[0-35-9]|6[56]|7[0135678]|8\\d|9[89])\\d{8}$"))) {
|
||||
return Result.error("手机号不符合规则!");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user