| 
...
 | 
...
 | 
@@ -67,7 +67,7 @@ class MailListV2Es2 extends Base { | 
| 
 | 
 | 
         }
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 
 | 
| 
 | 
 | 
 //        $where['is_hots'] = 0;
 | 
| 
 | 
 | 
         $where['is_hots'] = 0;
 | 
| 
 | 
 | 
         // 项目id
 | 
| 
 | 
 | 
         $where['postid'] = intval(app()->request('postid',-1));
 | 
| 
 | 
 | 
         $where['folder_as_int'] = 404; // 搜索那个文件夹
 | 
| 
...
 | 
...
 | 
@@ -437,8 +437,9 @@ class MailListV2Es2 extends Base { | 
| 
 | 
 | 
         if($seen!==null){
 | 
| 
 | 
 | 
             $body['query']['bool']['must'][] = ['term'=>['seen'=>$seen]];
 | 
| 
 | 
 | 
         }
 | 
| 
 | 
 | 
         if(in_array($folder,['收件箱','发件箱']))
 | 
| 
 | 
 | 
         
 | 
| 
 | 
 | 
         $body['query']['bool']['must'][] = ['term'=>['is_hots'=>0]];
 | 
| 
 | 
 | 
             
 | 
| 
 | 
 | 
         $body['query']['bool']['must'][] = ['term'=>['folder_as_int'=>folder2int($folder)]];
 | 
| 
 | 
 | 
         if($this->assignSql($folder)) $body['query']['bool']['must'][] = $this->assignSql($folder);
 | 
| 
 | 
 | 
         // logs('count :'.json_encode($body));
 | 
...
 | 
...
 | 
 |