...
|
...
|
@@ -422,6 +422,34 @@ class Mail { |
|
|
$data['subject'] = mb_substr($data['subject'],0,3500);
|
|
|
try {
|
|
|
$id = $db->throw()->insert(listsSql::$table,$data);
|
|
|
if($id){
|
|
|
// 是否是预热邮件 aicc专用
|
|
|
if(!empty($header['Aicc-Hot-Mail'])){
|
|
|
try {
|
|
|
$f = $db->value(folderSql::first($data['folder_id'],'folder'));
|
|
|
$f = folderAlias($f);
|
|
|
if($f=='收件箱'){
|
|
|
$f = 's';
|
|
|
}elseif($f=='发件箱'){
|
|
|
$f = 'f';
|
|
|
}elseif($f=='垃圾箱'){
|
|
|
$f = 'l';
|
|
|
}
|
|
|
if(in_array($f,['s','f','l'])){
|
|
|
$db->throw()->insert('fob_hot_mail',[
|
|
|
'lists_id' => $id,
|
|
|
'email_id' => $data['email_id'],
|
|
|
'hot_form' => $data['from'],
|
|
|
'folder' => $f
|
|
|
],false);
|
|
|
}
|
|
|
}catch (\Throwable $exception){
|
|
|
logs($exception->getMessage());
|
|
|
}
|
|
|
|
|
|
}
|
|
|
}
|
|
|
|
|
|
}catch (\Throwable $e){
|
|
|
// 插入失败,尝试更新
|
|
|
$db->update(listsSql::$table,$data,dbWhere([
|
...
|
...
|
|