作者 邓超

x

@@ -312,15 +312,15 @@ class SyncMail { @@ -312,15 +312,15 @@ class SyncMail {
312 312
313 foreach ($uids as $k=>$uid){ 313 foreach ($uids as $k=>$uid){
314 314
315 - $has = redis()->get('h_'.$folder_id.'_'.$uid,function () use ($folder_id,$uid){ 315 +// $has = redis()->get('h_'.$folder_id.'_'.$uid,function () use ($folder_id,$uid){
316 $num = $this->db->value(listsSql::first(dbWhere(['email_id'=>$this->emailId(),'folder_id'=>$folder_id,'uid'=>$uid]),'count(*) as c')); 316 $num = $this->db->value(listsSql::first(dbWhere(['email_id'=>$this->emailId(),'folder_id'=>$folder_id,'uid'=>$uid]),'count(*) as c'));
317 - if($num){  
318 - redis()->set('h_'.$folder_id.'_'.$uid,1,86400);  
319 - }  
320 - return $num;  
321 - }); 317 +// if($num){
  318 +// redis()->set('h_'.$folder_id.'_'.$uid,1,86400);
  319 +// }
  320 +// return $num;
  321 +// });
322 322
323 - if($has){ 323 + if($num){
324 unset($uids[$k]); 324 unset($uids[$k]);
325 } 325 }
326 } 326 }