作者 邓超

x

... ... @@ -154,7 +154,7 @@ class MailList extends Base {
if($extSql){
$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);
}else{
if($folder == '收件箱' || $folder == '发件箱'){
if(in_array($folder,['收件箱','发件箱','垃圾箱'])){
$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);
}else{
$sql = "select %s from `lists` where ".dbWhere($where);
... ...