正在显示
1 个修改的文件
包含
6 行增加
和
2 行删除
@@ -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); |
-
请 注册 或 登录 后发表评论