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