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