作者 邓超

预热邮件

@@ -287,6 +287,10 @@ class SyncMail { @@ -287,6 +287,10 @@ class SyncMail {
287 287
288 $num = redis()->get('h_'.$folder_id.'_'.$uid,function () use ($folder_id,$uid){ 288 $num = redis()->get('h_'.$folder_id.'_'.$uid,function () use ($folder_id,$uid){
289 $num = $this->db->value(listsSql::first(dbWhere(['email_id'=>$this->emailId(),'folder_id'=>$folder_id,'uid'=>$uid]),'count(*) as c')); 289 $num = $this->db->value(listsSql::first(dbWhere(['email_id'=>$this->emailId(),'folder_id'=>$folder_id,'uid'=>$uid]),'count(*) as c'));
  290 + // 查询lists_hot表
  291 + if(!$num){
  292 + $num = $this->db->value("select count(*) as c from lists_hot where `email_id` = ".$this->emailId()." and `folder_id` = {$folder_id} and `uid` = {$uid}");
  293 + }
290 if($num){ 294 if($num){
291 redis()->set('h_'.$folder_id.'_'.$uid,1,86400); 295 redis()->set('h_'.$folder_id.'_'.$uid,1,86400);
292 } 296 }