正在显示
1 个修改的文件
包含
3 行增加
和
3 行删除
| @@ -326,7 +326,7 @@ class SyncSubmitTaskService | @@ -326,7 +326,7 @@ class SyncSubmitTaskService | ||
| 326 | //过滤邮箱 | 326 | //过滤邮箱 |
| 327 | if($config['filter_emails'] && !empty($data['data']['email'])){ | 327 | if($config['filter_emails'] && !empty($data['data']['email'])){ |
| 328 | foreach ($config['filter_emails'] as $filter_email){ | 328 | foreach ($config['filter_emails'] as $filter_email){ |
| 329 | - if(Str::contains($data['data']['email'], $filter_email)){ | 329 | + if(Str::contains(strtolower($data['data']['email']), strtolower($filter_email))){ |
| 330 | throw new InquiryFilterException( '过滤邮箱:' . $filter_email); | 330 | throw new InquiryFilterException( '过滤邮箱:' . $filter_email); |
| 331 | } | 331 | } |
| 332 | } | 332 | } |
| @@ -334,7 +334,7 @@ class SyncSubmitTaskService | @@ -334,7 +334,7 @@ class SyncSubmitTaskService | ||
| 334 | //过滤电话 | 334 | //过滤电话 |
| 335 | if($config['filter_mobiles'] && !empty($data['data']['phone'])){ | 335 | if($config['filter_mobiles'] && !empty($data['data']['phone'])){ |
| 336 | foreach ($config['filter_mobiles'] as $filter_mobile){ | 336 | foreach ($config['filter_mobiles'] as $filter_mobile){ |
| 337 | - if(Str::contains($data['data']['phone'], $filter_mobile)){ | 337 | + if(Str::contains(strtolower($data['data']['phone']), strtolower($filter_mobile))){ |
| 338 | throw new InquiryFilterException( '过滤电话:' . $filter_mobile); | 338 | throw new InquiryFilterException( '过滤电话:' . $filter_mobile); |
| 339 | } | 339 | } |
| 340 | } | 340 | } |
| @@ -342,7 +342,7 @@ class SyncSubmitTaskService | @@ -342,7 +342,7 @@ class SyncSubmitTaskService | ||
| 342 | //过滤姓名 | 342 | //过滤姓名 |
| 343 | if($config['filter_names'] && !empty($data['data']['name'])){ | 343 | if($config['filter_names'] && !empty($data['data']['name'])){ |
| 344 | foreach ($config['filter_names'] as $filter_name){ | 344 | foreach ($config['filter_names'] as $filter_name){ |
| 345 | - if( Str::contains($data['data']['name'], $filter_name)){ | 345 | + if( Str::contains(strtolower($data['data']['name']), strtolower($filter_name))){ |
| 346 | throw new InquiryFilterException( '过滤姓名:' . $filter_name); | 346 | throw new InquiryFilterException( '过滤姓名:' . $filter_name); |
| 347 | } | 347 | } |
| 348 | } | 348 | } |
-
请 注册 或 登录 后发表评论