正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
@@ -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 | } |
-
请 注册 或 登录 后发表评论