作者 邓超

x

@@ -54,12 +54,12 @@ class Folder extends Base { @@ -54,12 +54,12 @@ class Folder extends Base {
54 unset($folder['email_id']); 54 unset($folder['email_id']);
55 // 总数 55 // 总数
56 $folder['exsts'] = db()->count(listsSql::listCount( 56 $folder['exsts'] = db()->count(listsSql::listCount(
57 - dbWhere(['folder_id'=> $folder['id'], 'deleted' => 0]) 57 + dbWhere(['email_id'=>$eid,'folder_id'=> $folder['id'], 'deleted' => 0])
58 )); 58 ));
59 if($folder['folder']=='收件箱'){ 59 if($folder['folder']=='收件箱'){
60 // 未读 60 // 未读
61 $folder['unseen'] = db()->count(listsSql::listCount( 61 $folder['unseen'] = db()->count(listsSql::listCount(
62 - dbWhere(['folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0]) 62 + dbWhere(['email_id'=>$eid,'folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0])
63 )); 63 ));
64 }else{ 64 }else{
65 $folder['unseen'] = 0; 65 $folder['unseen'] = 0;