作者 邓超

全部标记 已读未读

@@ -557,12 +557,15 @@ class Home extends Base { @@ -557,12 +557,15 @@ class Home extends Base {
557 unset($fids[$fk]); 557 unset($fids[$fk]);
558 } 558 }
559 } 559 }
  560 + if($fids){
560 // 查询要标记的 邮件id 561 // 查询要标记的 邮件id
561 $mail_ids = db()->all(listsSql::all(dbWhere(['folder_id'=>array_column($fids,'id'),'seen'=>0]),'`id`')); 562 $mail_ids = db()->all(listsSql::all(dbWhere(['folder_id'=>array_column($fids,'id'),'seen'=>0]),'`id`'));
562 563
563 $mail_ids = array_column($mail_ids,'id'); 564 $mail_ids = array_column($mail_ids,'id');
564 } 565 }
565 566
  567 + }
  568 +
566 569
567 if(!($mail_ids && is_array($mail_ids))){ 570 if(!($mail_ids && is_array($mail_ids))){
568 app()->e('param_request_error'); 571 app()->e('param_request_error');