作者 邓超

x

@@ -178,7 +178,7 @@ class MailListV2 extends Base { @@ -178,7 +178,7 @@ class MailListV2 extends Base {
178 if($subject){ 178 if($subject){
179 $subject = is_array($subject) ? $subject : [$subject]; 179 $subject = is_array($subject) ? $subject : [$subject];
180 foreach ($subject as $sub){ 180 foreach ($subject as $sub){
181 - $sql.=' and `subject` .'.(empty($is_auto_inbox)?' not ':'').'like "%'.addslashes($sub).'%"'; 181 + $sql.=' and `subject` .'.(empty($is_auto_inbox)?' not ':'').'like "%%'.addslashes($sub).'%%"';
182 } 182 }
183 } 183 }
184 // 不在此邮箱中的 184 // 不在此邮箱中的
@@ -186,7 +186,7 @@ class MailListV2 extends Base { @@ -186,7 +186,7 @@ class MailListV2 extends Base {
186 if($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]; 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){ 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 }
192 /************ 2024-09-02 *************/ 192 /************ 2024-09-02 *************/