作者 邓超

修护通知

@@ -28,10 +28,10 @@ class SyncMail { @@ -28,10 +28,10 @@ class SyncMail {
28 if(php_sapi_name() == 'cli'){ 28 if(php_sapi_name() == 'cli'){
29 $this->db = db(); 29 $this->db = db();
30 30
31 - // 是否是预热邮件 aicc专用  
32 - if(!empty($header['Aicc-Hot-Mail']) || !empty($header['aicc-hot-mail'])){  
33 - return $this->hot($id);  
34 - } 31 + // 是否是预热邮件 aicc专用
  32 + if(!empty($header['Aicc-Hot-Mail']) || !empty($header['aicc-hot-mail'])){
  33 + return $this->hot($id);
  34 + }
35 35
36 // 是否在指定文件夹内 36 // 是否在指定文件夹内
37 $f = $this->db->value(folderSql::first($data['folder_id'],'folder')); 37 $f = $this->db->value(folderSql::first($data['folder_id'],'folder'));
@@ -75,7 +75,7 @@ class SyncMail { @@ -75,7 +75,7 @@ class SyncMail {
75 'subject' => $data['subject'], 75 'subject' => $data['subject'],
76 'udate' => $data['udate'], 76 'udate' => $data['udate'],
77 'from' => $data['from'], 77 'from' => $data['from'],
78 - 'tos' => array_column(json_decode($data['to_name'],1),'email') 78 + 'tos' => array_column($data['to_name'],'email')
79 ]); 79 ]);
80 }catch (\Throwable $e){ 80 }catch (\Throwable $e){
81 // 就算异常了也不在推送了 81 // 就算异常了也不在推送了
@@ -230,7 +230,7 @@ class SyncMail { @@ -230,7 +230,7 @@ class SyncMail {
230 if(!empty($data['from'])){ 230 if(!empty($data['from'])){
231 // 是否是ai邮件 231 // 是否是ai邮件
232 if($this->db->count("select count(*) from `hot_mail` where ".dbWhere([ 232 if($this->db->count("select count(*) from `hot_mail` where ".dbWhere([
233 - 'email'=> $this->db->value(emailSql::first($data['email_id'],'`email`')) 233 + 'email'=> $this->db->value(emailSql::first($data['email_id'],'`email`'))
234 ]))){ 234 ]))){
235 // 是否在黑名单中 235 // 是否在黑名单中
236 if($this->db->count("select count(*) from `ai_black_email` where ".dbWhere(['email'=>$data['from']]))){ 236 if($this->db->count("select count(*) from `ai_black_email` where ".dbWhere(['email'=>$data['from']]))){