正在显示
1 个修改的文件
包含
5 行增加
和
2 行删除
@@ -379,6 +379,7 @@ class MailListV2 extends Base { | @@ -379,6 +379,7 @@ class MailListV2 extends Base { | ||
379 | $show_count_filed = app()->requestArr('show_count_filed',['inbox', 'send', 'unseen', 'flagged', 'junk', 'hot_inbox', 'hot_send']); | 379 | $show_count_filed = app()->requestArr('show_count_filed',['inbox', 'send', 'unseen', 'flagged', 'junk', 'hot_inbox', 'hot_send']); |
380 | 380 | ||
381 | $sql = "select count(*) from `".$this->getTable()."` where "; | 381 | $sql = "select count(*) from `".$this->getTable()."` where "; |
382 | + $sqlhot = "select count(*) from `lists_hot` where "; | ||
382 | 383 | ||
383 | $where['deleted'] = 0; //未删状态 | 384 | $where['deleted'] = 0; //未删状态 |
384 | 385 | ||
@@ -387,14 +388,16 @@ class MailListV2 extends Base { | @@ -387,14 +388,16 @@ class MailListV2 extends Base { | ||
387 | // $where['folder_id'] = $this->getFolderId('发件箱'); | 388 | // $where['folder_id'] = $this->getFolderId('发件箱'); |
388 | // 预热发件箱 | 389 | // 预热发件箱 |
389 | $where['is_hots'] = 1; | 390 | $where['is_hots'] = 1; |
390 | - $fCount = db()->cache($this->cache)->count($sql.$this->assignSql3('发件箱').dbWhere($where)); | 391 | + $fCount = db()->cache(86400)->count($sql.$this->assignSql3('发件箱').dbWhere($where)); |
392 | + $fCount += db()->cache(86400)->count($sqlhot.$this->assignSql3('发件箱').dbWhere($where)); | ||
391 | } | 393 | } |
392 | 394 | ||
393 | // 预热收件箱 | 395 | // 预热收件箱 |
394 | if(in_array('hot_inbox',$show_count_filed)) { | 396 | if(in_array('hot_inbox',$show_count_filed)) { |
395 | // $where['folder_id'] = $this->getFolderId('收件箱'); | 397 | // $where['folder_id'] = $this->getFolderId('收件箱'); |
396 | $where['is_hots'] = 1; | 398 | $where['is_hots'] = 1; |
397 | - $sCount = db()->cache($this->cache)->count($sql .$this->assignSql3('收件箱'). dbWhere($where)); | 399 | + $sCount = db()->cache(86400)->count($sql .$this->assignSql3('收件箱'). dbWhere($where)); |
400 | + $sCount += db()->cache(86400)->count($sqlhot .$this->assignSql3('收件箱'). dbWhere($where)); | ||
398 | } | 401 | } |
399 | unset($where['folder_id']); | 402 | unset($where['folder_id']); |
400 | 403 |
-
请 注册 或 登录 后发表评论