作者 邓超

fob

@@ -69,7 +69,7 @@ class HotMail { @@ -69,7 +69,7 @@ class HotMail {
69 foreach ($folders as $f){ 69 foreach ($folders as $f){
70 if(folderAlias($f['folder']) == $folder){ 70 if(folderAlias($f['folder']) == $folder){
71 // 最后记录的id 71 // 最后记录的id
72 - $last_id = db()->value('select max(`lists_id`) from `fob_hot_mail` where `email_id` = '.$email_id.' limit 1'); 72 + $last_id = db()->value('select max(`lists_id`) from `fob_hot_mail` where `email_id` = '.$email_id.' and `folder` = "'.$type.'" limit 1');
73 $last_id = $last_id?$last_id:0; 73 $last_id = $last_id?$last_id:0;
74 $this->findList(new Data($email_id,$f['id'],$type,$last_id)); 74 $this->findList(new Data($email_id,$f['id'],$type,$last_id));
75 } 75 }