| 
...
 | 
...
 | 
@@ -28,8 +28,13 @@ class AutoMail { | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         redis()->set('prev_auto_mail_keyword',$filter,86400);
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         $q = array_diff($filter,$old);
 | 
| 
 | 
 | 
         // 差集
 | 
| 
 | 
 | 
         $t = function ($vs){
 | 
| 
 | 
 | 
             return array_map(function ($v){
 | 
| 
 | 
 | 
                 return $v[0].":".$v[1];
 | 
| 
 | 
 | 
             },$vs);
 | 
| 
 | 
 | 
         };
 | 
| 
 | 
 | 
         // 找到新增的
 | 
| 
 | 
 | 
         $q = array_diff($t($filter),$t($old));
 | 
| 
 | 
 | 
         if(!$q){
 | 
| 
 | 
 | 
             return 0;
 | 
| 
 | 
 | 
         }
 | 
| 
...
 | 
...
 | 
@@ -38,7 +43,7 @@ class AutoMail { | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
         $not_must = [];
 | 
| 
 | 
 | 
         foreach ($q as $f){
 | 
| 
 | 
 | 
             list($t,$str) = $f;
 | 
| 
 | 
 | 
             list($t,$str) = explode(':',$f,2);
 | 
| 
 | 
 | 
             if($t==2){
 | 
| 
 | 
 | 
                 $not_must[] = ["match_phrase"=>["subject"=>$str]];
 | 
| 
 | 
 | 
 
 | 
...
 | 
...
 | 
 |