正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
@@ -188,8 +188,14 @@ class fob_ai_mail_auto_reply { | @@ -188,8 +188,14 @@ class fob_ai_mail_auto_reply { | ||
188 | $set['emails'] = @json_decode($set['emails'],true); | 188 | $set['emails'] = @json_decode($set['emails'],true); |
189 | // 是否开启了 | 189 | // 是否开启了 |
190 | if($set['emails']&&(in_array($email,$set['emails'])||in_array('所有邮箱',$set['emails']))){ | 190 | if($set['emails']&&(in_array($email,$set['emails'])||in_array('所有邮箱',$set['emails']))){ |
191 | + $c = explode('<body >',$set['content'])[1]??''; | ||
192 | + $c = explode('</body>',$c)[0]??''; | ||
193 | + $c = strip_tags($c); | ||
194 | + $c = str_replace([" "],[""],$c); | ||
195 | + $c = trim($c); | ||
196 | + | ||
191 | // 必须设置了内容 | 197 | // 必须设置了内容 |
192 | - if($set['content']){ | 198 | + if(strlen($c)>0){ |
193 | $set['week'] = @json_decode($set['week'],true); | 199 | $set['week'] = @json_decode($set['week'],true); |
194 | // 是否满足周 | 200 | // 是否满足周 |
195 | if(!$set['week'] || in_array(date('w'),$set['week'])){ | 201 | if(!$set['week'] || in_array(date('w'),$set['week'])){ |
-
请 注册 或 登录 后发表评论