作者 邓超

x

... ... @@ -312,15 +312,15 @@ class SyncMail {
foreach ($uids as $k=>$uid){
$has = redis()->get('h_'.$folder_id.'_'.$uid,function () use ($folder_id,$uid){
// $has = 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'));
if($num){
redis()->set('h_'.$folder_id.'_'.$uid,1,86400);
}
return $num;
});
// if($num){
// redis()->set('h_'.$folder_id.'_'.$uid,1,86400);
// }
// return $num;
// });
if($has){
if($num){
unset($uids[$k]);
}
}
... ...