|
...
|
...
|
@@ -40,6 +40,13 @@ class WebSettingReceivingLogic extends BaseLogic |
|
|
|
try {
|
|
|
|
$this->model->del(['project_id'=>$this->user['project_id']]);
|
|
|
|
foreach ($this->param['data'] as $v){
|
|
|
|
if($v['type'] == 1){
|
|
|
|
// 使用正则表达式匹配中国大陆手机号
|
|
|
|
$pattern = '/^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/';
|
|
|
|
if (!preg_match($pattern, $v['values'])) {
|
|
|
|
continue;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if($v['type'] == 2){
|
|
|
|
// 使用正则表达式匹配中国大陆手机号
|
|
|
|
$pattern = '/^1[3456789]\d{9}$/';
|
...
|
...
|
|