作者 邓超

x

@@ -150,10 +150,14 @@ class MailListV2 extends Base { @@ -150,10 +150,14 @@ class MailListV2 extends Base {
150 } 150 }
151 } 151 }
152 152
153 - $folder_id = $this->getFolderId($folder); 153 + // 星标就不加文件夹赛选
  154 + if(empty($where['flagged'])){
  155 + $folder_id = $this->getFolderId($folder);
  156 +
  157 + //目录
  158 + $where['folder_id'] = $folder_id;
  159 + }
154 160
155 - //目录  
156 - $where['folder_id'] = $folder_id;  
157 if($ids) $where['id'] = $ids; 161 if($ids) $where['id'] = $ids;
158 162
159 if(app()->request('attachment',0,'bool_Val')){ 163 if(app()->request('attachment',0,'bool_Val')){
@@ -319,6 +323,7 @@ class MailListV2 extends Base { @@ -319,6 +323,7 @@ class MailListV2 extends Base {
319 // 星标 323 // 星标
320 if(in_array('flagged',$show_count_filed)) { 324 if(in_array('flagged',$show_count_filed)) {
321 $where['flagged'] = 1; 325 $where['flagged'] = 1;
  326 + unset($where['folder_id']);
322 $flaggedCount = db()->cache($this->cache)->count($sql . dbWhere($where)); 327 $flaggedCount = db()->cache($this->cache)->count($sql . dbWhere($where));
323 } 328 }
324 $data = []; 329 $data = [];