正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
@@ -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,12 +186,11 @@ class MailListV2 extends Base { | @@ -186,12 +186,11 @@ 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 *************/ |
193 | 193 | ||
194 | - | ||
195 | // 查询列表数据 | 194 | // 查询列表数据 |
196 | $lists = db()->all(sprintf($sql,$filed)." order by `udate` desc limit {$limit} offset ".(($page-1)*$limit)); | 195 | $lists = db()->all(sprintf($sql,$filed)." order by `udate` desc limit {$limit} offset ".(($page-1)*$limit)); |
197 | 196 |
-
请 注册 或 登录 后发表评论