...
|
...
|
@@ -295,6 +295,12 @@ class MailListV2 extends Base { |
|
|
$where['is_hots'] = 0;
|
|
|
$lajiCount = db()->cache($this->cache)->count($sql . dbWhere($where));
|
|
|
}
|
|
|
// 星标
|
|
|
if(in_array('flagged',$show_count_filed)) {
|
|
|
$where['flagged'] = 1;
|
|
|
unset($where['folder_id']);
|
|
|
$flaggedCount = db()->cache($this->cache)->count($sql . dbWhere($where));
|
|
|
}
|
|
|
// 收件箱
|
|
|
if(in_array('inbox',$show_count_filed)) {
|
|
|
$where['folder_id'] = $this->getFolderId('收件箱');
|
...
|
...
|
@@ -334,12 +340,7 @@ class MailListV2 extends Base { |
|
|
$seenCount = db()->cache($this->cache)->count($sql . dbWhere($where));
|
|
|
unset($where['seen']);
|
|
|
}
|
|
|
// 星标
|
|
|
if(in_array('flagged',$show_count_filed)) {
|
|
|
$where['flagged'] = 1;
|
|
|
unset($where['folder_id']);
|
|
|
$flaggedCount = db()->cache($this->cache)->count($sql . dbWhere($where));
|
|
|
}
|
|
|
|
|
|
$data = [];
|
|
|
if(isset($shouCount)) $data['inbox'] = $shouCount;
|
|
|
if(isset($faCount)) $data['send'] = $faCount;
|
...
|
...
|
|