作者 邓超

优化

@@ -841,8 +841,8 @@ class Home extends Base { @@ -841,8 +841,8 @@ class Home extends Base {
841 // 查询要标记的 邮件id 841 // 查询要标记的 邮件id
842 $sql = listsSql::all(dbWhere(['folder_id'=>array_column($fids,'id'),'seen'=>0]),'`id`'); 842 $sql = listsSql::all(dbWhere(['folder_id'=>array_column($fids,'id'),'seen'=>0]),'`id`');
843 $mail_ids = db()->all($sql); 843 $mail_ids = db()->all($sql);
844 - $mail_ids2 = db()->all(str_replace('from `lists` where','from `lists_hot` where',$sql));  
845 - $mail_ids = array_merge($mail_ids,$mail_ids2); 844 +// $mail_ids2 = db()->all(str_replace('from `lists` where','from `lists_hot` where',$sql));
  845 +// $mail_ids = array_merge($mail_ids,$mail_ids2);
846 $mail_ids = array_column($mail_ids,'id'); 846 $mail_ids = array_column($mail_ids,'id');
847 } 847 }
848 848
@@ -866,8 +866,8 @@ class Home extends Base { @@ -866,8 +866,8 @@ class Home extends Base {
866 866
867 $sql = listsSql::all(dbWhere(['id'=>$mail_ids,'email_id'=>array_column($emails,'id')]),'`id`,`uid`,`email_id`,`folder_id`'); 867 $sql = listsSql::all(dbWhere(['id'=>$mail_ids,'email_id'=>array_column($emails,'id')]),'`id`,`uid`,`email_id`,`folder_id`');
868 $data = db()->all($sql); 868 $data = db()->all($sql);
869 - $data2 = db()->all(str_replace('from `lists` where','from `lists_hot` where',$sql));  
870 - $data = array_merge($data,$data2); 869 +// $data2 = db()->all(str_replace('from `lists` where','from `lists_hot` where',$sql));
  870 +// $data = array_merge($data,$data2);
871 if($data){ 871 if($data){
872 // 查询邮箱 872 // 查询邮箱
873 $emails = array_column($emails,null,'id'); 873 $emails = array_column($emails,null,'id');