正在显示
1 个修改的文件
包含
8 行增加
和
0 行删除
@@ -408,6 +408,13 @@ class MailListV2 extends Base { | @@ -408,6 +408,13 @@ class MailListV2 extends Base { | ||
408 | 408 | ||
409 | $shouCount = db()->cache($this->cache)->count($sql . dbWhere($where)); | 409 | $shouCount = db()->cache($this->cache)->count($sql . dbWhere($where)); |
410 | 410 | ||
411 | + // 收件箱中标记为已回复的邮件 | ||
412 | + if(in_array('replied',$show_count_filed)){ | ||
413 | + $where['answered'] = 1; | ||
414 | + $repliedCount = db()->cache($this->cache)->count($sql . dbWhere($where)); | ||
415 | + unset($where['answered']); | ||
416 | + } | ||
417 | + | ||
411 | // 未读 | 418 | // 未读 |
412 | if(in_array('unseen',$show_count_filed)) { | 419 | if(in_array('unseen',$show_count_filed)) { |
413 | $where['seen'] = 0; | 420 | $where['seen'] = 0; |
@@ -430,6 +437,7 @@ class MailListV2 extends Base { | @@ -430,6 +437,7 @@ class MailListV2 extends Base { | ||
430 | 437 | ||
431 | $data = []; | 438 | $data = []; |
432 | if(isset($shouCount)) $data['inbox'] = $shouCount; | 439 | if(isset($shouCount)) $data['inbox'] = $shouCount; |
440 | + if(isset($repliedCount)) $data['replied'] = $repliedCount; | ||
433 | if(isset($faCount)) $data['send'] = $faCount; | 441 | if(isset($faCount)) $data['send'] = $faCount; |
434 | if(isset($seenCount)) $data['unseen'] = $seenCount; | 442 | if(isset($seenCount)) $data['unseen'] = $seenCount; |
435 | if(isset($flaggedCount)) $data['flagged'] = $flaggedCount; | 443 | if(isset($flaggedCount)) $data['flagged'] = $flaggedCount; |
-
请 注册 或 登录 后发表评论