作者 邓超

es调整

... ... @@ -91,12 +91,16 @@ class HomeEs extends Base {
}
if(!$folder_id){
app()->e('folder_not_fount');
if($folder_id){
$query['query']['bool']['must'][] = ['terms'=>[
'folder_id'=>$folder_id
]];
}else{
$query['query']['bool']['must'][] = ['terms'=>[
'email_id'=> $this->getEmails('id')
]];
}
$query['query']['bool']['must'][] = ['terms'=>[
'folder_id'=>$folder_id
]];
if($ids) {
$query['query']['bool']['must'][] = ['terms'=>[
... ...