|
...
|
...
|
@@ -295,14 +295,14 @@ class SyncSubmitTaskService |
|
|
|
//过滤内容关键字
|
|
|
|
if ($config['filter_contents']){
|
|
|
|
foreach ($config['filter_contents'] as $filter_content) {
|
|
|
|
if (Str::contains($data['data']['message'], $filter_content)) {
|
|
|
|
if (Str::contains(strtolower($data['data']['message']), strtolower($filter_content))) {
|
|
|
|
throw new InquiryFilterException('过滤内容:' . $filter_content);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
//是否允许包含链接
|
|
|
|
if(!$config['is_allow_link']){
|
|
|
|
if (Str::contains($data['data']['message'], ['http://', 'https://', 'www.'])) {
|
|
|
|
if (Str::contains(strtolower($data['data']['message']), ['http://', 'https://', 'www.'])) {
|
|
|
|
throw new InquiryFilterException('不允许包含链接');
|
|
|
|
}
|
|
|
|
}
|
...
|
...
|
|