作者 邓超

x

@@ -182,10 +182,10 @@ class MailListV2 extends Base { @@ -182,10 +182,10 @@ class MailListV2 extends Base {
182 } 182 }
183 } 183 }
184 // 不在此邮箱中的 184 // 不在此邮箱中的
185 - $subject = app()->request('from_not_in_like');  
186 - if($subject){  
187 - $subject = is_array($subject) ? $subject : [$subject];  
188 - foreach ($subject as $sub){ 185 + $from_not_in_like = app()->request('from_not_in_like');
  186 + if($from_not_in_like){
  187 + $from_not_in_like = is_array($from_not_in_like) ? $from_not_in_like : [$from_not_in_like];
  188 + foreach ($from_not_in_like as $sub){
189 $sql.=' and `from` .'.(empty($is_auto_inbox)?' not ':'').'like "%'.addslashes($sub).'%"'; 189 $sql.=' and `from` .'.(empty($is_auto_inbox)?' not ':'').'like "%'.addslashes($sub).'%"';
190 } 190 }
191 } 191 }