|
...
|
...
|
@@ -326,7 +326,7 @@ class SyncSubmitTaskService |
|
|
|
//过滤邮箱
|
|
|
|
if($config['filter_emails'] && !empty($data['data']['email'])){
|
|
|
|
foreach ($config['filter_emails'] as $filter_email){
|
|
|
|
if(Str::contains($data['data']['email'], $filter_email)){
|
|
|
|
if(Str::contains(strtolower($data['data']['email']), strtolower($filter_email))){
|
|
|
|
throw new InquiryFilterException( '过滤邮箱:' . $filter_email);
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -334,7 +334,7 @@ class SyncSubmitTaskService |
|
|
|
//过滤电话
|
|
|
|
if($config['filter_mobiles'] && !empty($data['data']['phone'])){
|
|
|
|
foreach ($config['filter_mobiles'] as $filter_mobile){
|
|
|
|
if(Str::contains($data['data']['phone'], $filter_mobile)){
|
|
|
|
if(Str::contains(strtolower($data['data']['phone']), strtolower($filter_mobile))){
|
|
|
|
throw new InquiryFilterException( '过滤电话:' . $filter_mobile);
|
|
|
|
}
|
|
|
|
}
|
|
...
|
...
|
@@ -342,7 +342,7 @@ class SyncSubmitTaskService |
|
|
|
//过滤姓名
|
|
|
|
if($config['filter_names'] && !empty($data['data']['name'])){
|
|
|
|
foreach ($config['filter_names'] as $filter_name){
|
|
|
|
if( Str::contains($data['data']['name'], $filter_name)){
|
|
|
|
if( Str::contains(strtolower($data['data']['name']), strtolower($filter_name))){
|
|
|
|
throw new InquiryFilterException( '过滤姓名:' . $filter_name);
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|