mirror of
https://gitee.com/apiadmin/ApiAdmin.git
synced 2025-04-06 03:58:00 +08:00
modified 优化手机号正则
This commit is contained in:
parent
2b1f817f5c
commit
6a92e77c5d
@ -114,7 +114,7 @@ class RequestFilter {
|
||||
}
|
||||
break;
|
||||
case DataType::TYPE_MOBILE:
|
||||
$newRule[$value['field_name'] . '|' . $value['info']]['regex'] = '/^1[345789]\d{9}$/';
|
||||
$newRule[$value['field_name'] . '|' . $value['info']]['regex'] = '/^1[3456789]\d{9}$/';
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user