作者 邓超

统计

... ... @@ -279,6 +279,11 @@ class Home extends Base {
// 总数
$inbox = db()->cache(3600)->count(listsSql::listCount(dbWhere($where)));
if(app()->request('show')=='inbox'){
app()->_json(['inbox'=>$inbox]);
}
// 未读
$where['seen'] = 0;
$unseen = db()->cache(3600)->count(listsSql::listCount(dbWhere($where)));
... ... @@ -286,7 +291,7 @@ class Home extends Base {
$where['folder_id'] = [];
foreach ($folderList as $item) {
if ($item['folder'] == '件箱') {
if ($item['folder'] == '件箱') {
$where['folder_id'][] = $item['id'];
}
}
... ...