作者 邓超

预热 逻辑

@@ -86,7 +86,7 @@ class HotMail { @@ -86,7 +86,7 @@ class HotMail {
86 private function findList(Data $data, int $p = 1){ 86 private function findList(Data $data, int $p = 1){
87 $lists = db()->all( 87 $lists = db()->all(
88 sprintf( 88 sprintf(
89 - "select `id`,`folder_id`,`email_id`,`from` from `lists` where `id` > %d and `email_id` = %d and `folder_id` = %d and (select count(*) from `fob_hot_mail` where `lists`.`id` = `fob_hot_mail`.`lists_id`) > 0 limit 1000 offset ".(($p-1)*1000), 89 + "select `id`,`folder_id`,`email_id`,`from` from `lists` where `id` > %d and `email_id` = %d and `folder_id` = %d and (select count(*) from `fob_hot_mail` where `lists`.`id` = `fob_hot_mail`.`lists_id`) = 0 limit 1000 offset ".(($p-1)*1000),
90 $data->last_id, 90 $data->last_id,
91 $data->email_id, 91 $data->email_id,
92 $data->folder_id 92 $data->folder_id