正在显示
2 个修改的文件
包含
6 行增加
和
15 行删除
@@ -63,21 +63,8 @@ class SyncToEsCmd { | @@ -63,21 +63,8 @@ class SyncToEsCmd { | ||
63 | 63 | ||
64 | if($is_auto) return 1; | 64 | if($is_auto) return 1; |
65 | 65 | ||
66 | - $filter = redis()->get('ai_email_filter_lists',[]); | ||
67 | - $filter = is_array($filter) ? $filter : []; | ||
68 | - foreach ($filter as $f){ | ||
69 | - list($t,$str) = $f; | ||
70 | - $haystack = ''; | ||
71 | - if($t==2){ | ||
72 | - $haystack = $data['subject']; | ||
73 | - }elseif ($t==1){ | ||
74 | - $haystack = $data['from']; | ||
75 | - } | ||
76 | - if($haystack && $str && stripos($haystack,$str)!==false){ | ||
77 | - return 1; | ||
78 | - } | ||
79 | - } | ||
80 | - return 0; | 66 | + return isAiAutoMail($data['from'],$data['subject']) === 1 ? 1 : 0; |
67 | + | ||
81 | } | 68 | } |
82 | 69 | ||
83 | /** | 70 | /** |
-
请 注册 或 登录 后发表评论