作者 邓超

统计

@@ -279,6 +279,11 @@ class Home extends Base { @@ -279,6 +279,11 @@ class Home extends Base {
279 279
280 // 总数 280 // 总数
281 $inbox = db()->cache(3600)->count(listsSql::listCount(dbWhere($where))); 281 $inbox = db()->cache(3600)->count(listsSql::listCount(dbWhere($where)));
  282 +
  283 + if(app()->request('show')=='inbox'){
  284 + app()->_json(['inbox'=>$inbox]);
  285 + }
  286 +
282 // 未读 287 // 未读
283 $where['seen'] = 0; 288 $where['seen'] = 0;
284 $unseen = db()->cache(3600)->count(listsSql::listCount(dbWhere($where))); 289 $unseen = db()->cache(3600)->count(listsSql::listCount(dbWhere($where)));
@@ -286,7 +291,7 @@ class Home extends Base { @@ -286,7 +291,7 @@ class Home extends Base {
286 291
287 $where['folder_id'] = []; 292 $where['folder_id'] = [];
288 foreach ($folderList as $item) { 293 foreach ($folderList as $item) {
289 - if ($item['folder'] == '件箱') { 294 + if ($item['folder'] == '件箱') {
290 $where['folder_id'][] = $item['id']; 295 $where['folder_id'][] = $item['id'];
291 } 296 }
292 } 297 }