正在显示
1 个修改的文件
包含
7 行增加
和
6 行删除
@@ -295,6 +295,12 @@ class MailListV2 extends Base { | @@ -295,6 +295,12 @@ class MailListV2 extends Base { | ||
295 | $where['is_hots'] = 0; | 295 | $where['is_hots'] = 0; |
296 | $lajiCount = db()->cache($this->cache)->count($sql . dbWhere($where)); | 296 | $lajiCount = db()->cache($this->cache)->count($sql . dbWhere($where)); |
297 | } | 297 | } |
298 | + // 星标 | ||
299 | + if(in_array('flagged',$show_count_filed)) { | ||
300 | + $where['flagged'] = 1; | ||
301 | + unset($where['folder_id']); | ||
302 | + $flaggedCount = db()->cache($this->cache)->count($sql . dbWhere($where)); | ||
303 | + } | ||
298 | // 收件箱 | 304 | // 收件箱 |
299 | if(in_array('inbox',$show_count_filed)) { | 305 | if(in_array('inbox',$show_count_filed)) { |
300 | $where['folder_id'] = $this->getFolderId('收件箱'); | 306 | $where['folder_id'] = $this->getFolderId('收件箱'); |
@@ -334,12 +340,7 @@ class MailListV2 extends Base { | @@ -334,12 +340,7 @@ class MailListV2 extends Base { | ||
334 | $seenCount = db()->cache($this->cache)->count($sql . dbWhere($where)); | 340 | $seenCount = db()->cache($this->cache)->count($sql . dbWhere($where)); |
335 | unset($where['seen']); | 341 | unset($where['seen']); |
336 | } | 342 | } |
337 | - // 星标 | ||
338 | - if(in_array('flagged',$show_count_filed)) { | ||
339 | - $where['flagged'] = 1; | ||
340 | - unset($where['folder_id']); | ||
341 | - $flaggedCount = db()->cache($this->cache)->count($sql . dbWhere($where)); | ||
342 | - } | 343 | + |
343 | $data = []; | 344 | $data = []; |
344 | if(isset($shouCount)) $data['inbox'] = $shouCount; | 345 | if(isset($shouCount)) $data['inbox'] = $shouCount; |
345 | if(isset($faCount)) $data['send'] = $faCount; | 346 | if(isset($faCount)) $data['send'] = $faCount; |
-
请 注册 或 登录 后发表评论