作者 邓超

x

@@ -138,8 +138,12 @@ class MailListV2 extends Base { @@ -138,8 +138,12 @@ class MailListV2 extends Base {
138 $where['is_hots'] = 1; 138 $where['is_hots'] = 1;
139 } 139 }
140 140
141 - if(app()->request('seen')){  
142 - $where['seen'] = 0; 141 + $seen = app()->request('seen',-1,'intval');
  142 + // 已读/未读
  143 + if(paramHas('seen')){
  144 + if(in_array($seen,[0,1])){
  145 + $where['seen'] = $seen;
  146 + }
143 } 147 }
144 148
145 $folder_id = $this->getFolderId($folder); 149 $folder_id = $this->getFolderId($folder);