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