作者 邓超

fob

@@ -152,7 +152,7 @@ class MailList extends Base { @@ -152,7 +152,7 @@ class MailList extends Base {
152 $filed = '`id`,`uid`,`subject`,`from`,`from_name`,`flagged`,`seen`,`udate`,`folder_id`,`is_file`,`description`,`lists`.`email_id`,`to_name`'; 152 $filed = '`id`,`uid`,`subject`,`from`,`from_name`,`flagged`,`seen`,`udate`,`folder_id`,`is_file`,`description`,`lists`.`email_id`,`to_name`';
153 153
154 if($extSql){ 154 if($extSql){
155 - $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where `fob_hot_mail`.`lists_id` > 0 and `fob_hot_mail`.`folder` = '{$extSql}' and ".dbWhere($where); 155 + $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where `fob_hot_mail`.`folder` = '{$extSql}' and ".dbWhere($where);
156 }else{ 156 }else{
157 if($folder == '收件箱' || $folder == '发件箱'){ 157 if($folder == '收件箱' || $folder == '发件箱'){
158 $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where ISNULL(`lists_id`) and ".dbWhere($where); 158 $sql = "select %s from `lists` left join `fob_hot_mail` on `lists`.`id` = `fob_hot_mail`.`lists_id` where ISNULL(`lists_id`) and ".dbWhere($where);
@@ -212,11 +212,11 @@ class MailList extends Base { @@ -212,11 +212,11 @@ class MailList extends Base {
212 $where['lists|folder_id'] = $this->getFolderId('发件箱'); 212 $where['lists|folder_id'] = $this->getFolderId('发件箱');
213 // 预热发件箱 213 // 预热发件箱
214 $where['fob_hot_mail|folder'] = 'f'; 214 $where['fob_hot_mail|folder'] = 'f';
215 - $fCount = db()->count($sql.dbWhere($where)." and `lists_id` > 0"); 215 + $fCount = db()->count($sql.dbWhere($where));
216 // 预热收件箱 216 // 预热收件箱
217 $where['lists|folder_id'] = $this->getFolderId('收件箱'); 217 $where['lists|folder_id'] = $this->getFolderId('收件箱');
218 $where['fob_hot_mail|folder'] = 's'; 218 $where['fob_hot_mail|folder'] = 's';
219 - $sCount = db()->count($sql.dbWhere($where)." and `lists_id` > 0"); 219 + $sCount = db()->count($sql.dbWhere($where));
220 220
221 unset($where['fob_hot_mail|folder']); 221 unset($where['fob_hot_mail|folder']);
222 222