作者 邓超

x

... ... @@ -150,10 +150,14 @@ class MailListV2 extends Base {
}
}
$folder_id = $this->getFolderId($folder);
// 星标就不加文件夹赛选
if(empty($where['flagged'])){
$folder_id = $this->getFolderId($folder);
//目录
$where['folder_id'] = $folder_id;
}
//目录
$where['folder_id'] = $folder_id;
if($ids) $where['id'] = $ids;
if(app()->request('attachment',0,'bool_Val')){
... ... @@ -319,6 +323,7 @@ class MailListV2 extends Base {
// 星标
if(in_array('flagged',$show_count_filed)) {
$where['flagged'] = 1;
unset($where['folder_id']);
$flaggedCount = db()->cache($this->cache)->count($sql . dbWhere($where));
}
$data = [];
... ...