作者 邓超

统计

@@ -55,10 +55,15 @@ class Folder extends Base { @@ -55,10 +55,15 @@ class Folder extends Base {
55 $folder['exsts'] = db()->count(listsSql::listCount( 55 $folder['exsts'] = db()->count(listsSql::listCount(
56 dbWhere(['folder_id'=> $folder['id'], 'deleted' => 0]) 56 dbWhere(['folder_id'=> $folder['id'], 'deleted' => 0])
57 )); 57 ));
  58 + if($folder['folder']=='收件箱'){
58 // 未读 59 // 未读
59 $folder['unseen'] = db()->count(listsSql::listCount( 60 $folder['unseen'] = db()->count(listsSql::listCount(
60 dbWhere(['folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0]) 61 dbWhere(['folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0])
61 )); 62 ));
  63 + }else{
  64 + $folder['unseen'] = 0;
  65 + }
  66 +
62 $data[$email][$k] = $folder; 67 $data[$email][$k] = $folder;
63 } 68 }
64 } 69 }