...
|
...
|
@@ -52,18 +52,21 @@ class Folder extends Base { |
|
|
foreach ($folders as $k=>$folder){
|
|
|
if($folder['email_id'] == $eid){
|
|
|
unset($folder['email_id']);
|
|
|
// 总数
|
|
|
// $folder['exsts'] = db()->count(listsSql::listCount(
|
|
|
// dbWhere(['folder_id'=> $folder['id'], 'deleted' => 0])
|
|
|
// ));
|
|
|
// if($folder['folder']=='收件箱'){
|
|
|
// // 未读
|
|
|
// $folder['unseen'] = db()->count(listsSql::listCount(
|
|
|
// dbWhere(['folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0])
|
|
|
// ));
|
|
|
// }else{
|
|
|
// $folder['unseen'] = 0;
|
|
|
// }
|
|
|
if(app()->request('shishi')){
|
|
|
// 总数
|
|
|
$folder['exsts'] = db()->count(listsSql::listCount(
|
|
|
dbWhere(['folder_id'=> $folder['id'], 'deleted' => 0])
|
|
|
));
|
|
|
if($folder['folder']=='收件箱'){
|
|
|
// 未读
|
|
|
$folder['unseen'] = db()->count(listsSql::listCount(
|
|
|
dbWhere(['folder_id'=> $folder['id'], 'seen' => 0, 'deleted' => 0])
|
|
|
));
|
|
|
}else{
|
|
|
$folder['unseen'] = 0;
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
$data[$email][$k] = $folder;
|
|
|
}
|
...
|
...
|
|