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