作者 邓超

自动回复 把邮件从垃圾箱移到收件箱

@@ -92,7 +92,7 @@ class fob_ai_mail_auto_reply { @@ -92,7 +92,7 @@ class fob_ai_mail_auto_reply {
92 92
93 93
94 // 检查是否是垃圾箱 94 // 检查是否是垃圾箱
95 - $folder = $this->db->cache(3600)->value(folderSql::first($data['folder_id'])); 95 + $folder = $this->db->cache(3600)->first(folderSql::first($data['folder_id']));
96 if($folder['folder'] == '垃圾箱'){ 96 if($folder['folder'] == '垃圾箱'){
97 $email = $this->db->throw()->cache(3600)->first(\Model\emailSql::first($data['email_id'])); 97 $email = $this->db->throw()->cache(3600)->first(\Model\emailSql::first($data['email_id']));
98 98
@@ -113,7 +113,9 @@ class fob_ai_mail_auto_reply { @@ -113,7 +113,9 @@ class fob_ai_mail_auto_reply {
113 _echo("垃圾邮件移动失败 ".$data['id'].' '.$data['subject']); 113 _echo("垃圾邮件移动失败 ".$data['id'].' '.$data['subject']);
114 } 114 }
115 } 115 }
116 - if($ok) _echo("垃圾邮件移动成功 ".$data['id'].' '.$data['subject']); 116 + if($ok) {
  117 + _echo("垃圾邮件移动成功 ".$data['id'].' '.$data['subject']);
  118 + }
117 $mailInstance = null; 119 $mailInstance = null;
118 } 120 }
119 121