...
|
...
|
@@ -53,12 +53,12 @@ class Folder extends Base { |
|
|
if($folder['email_id'] == $eid){
|
|
|
unset($folder['email_id']);
|
|
|
// 总数
|
|
|
$folder['exsts'] = db()->count(listsSql::listCount(
|
|
|
$folder['exsts'] = db()->cache(86400)->count(listsSql::listCount(
|
|
|
dbWhere(['email_id'=>$eid,'folder_id'=> $folder['id'], 'deleted' => 0])
|
|
|
));
|
|
|
if($folder['folder']=='收件箱'){
|
|
|
// 未读
|
|
|
$folder['unseen'] = db()->count(listsSql::listCount(
|
|
|
$folder['unseen'] = db()->cache(86400)->count(listsSql::listCount(
|
|
|
dbWhere(['email_id'=>$eid,'folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0])
|
|
|
));
|
|
|
}else{
|
...
|
...
|
|