作者 邓超

qq邮箱有tm毛病

@@ -52,18 +52,21 @@ class Folder extends Base { @@ -52,18 +52,21 @@ class Folder extends Base {
52 foreach ($folders as $k=>$folder){ 52 foreach ($folders as $k=>$folder){
53 if($folder['email_id'] == $eid){ 53 if($folder['email_id'] == $eid){
54 unset($folder['email_id']); 54 unset($folder['email_id']);
  55 + if(app()->request('shishi')){
55 // 总数 56 // 总数
56 -// $folder['exsts'] = db()->count(listsSql::listCount(  
57 -// dbWhere(['folder_id'=> $folder['id'], 'deleted' => 0])  
58 -// ));  
59 -// if($folder['folder']=='收件箱'){  
60 -// // 未读  
61 -// $folder['unseen'] = db()->count(listsSql::listCount(  
62 -// dbWhere(['folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0])  
63 -// ));  
64 -// }else{  
65 -// $folder['unseen'] = 0;  
66 -// } 57 + $folder['exsts'] = db()->count(listsSql::listCount(
  58 + dbWhere(['folder_id'=> $folder['id'], 'deleted' => 0])
  59 + ));
  60 + if($folder['folder']=='收件箱'){
  61 + // 未读
  62 + $folder['unseen'] = db()->count(listsSql::listCount(
  63 + dbWhere(['folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0])
  64 + ));
  65 + }else{
  66 + $folder['unseen'] = 0;
  67 + }
  68 +
  69 + }
67 70
68 $data[$email][$k] = $folder; 71 $data[$email][$k] = $folder;
69 } 72 }