...
|
...
|
@@ -64,14 +64,19 @@ class syncMail { |
|
|
// 邮件过滤 这些邮箱都是系统邮箱
|
|
|
if(!in_array($data['from'],$filterEmail) || !preg_match("/^((no-?reply)|(postmaster)|(mailer-daemon)|(email-notifications)|(googleplay-noreply))@/i",$data['from'])){
|
|
|
// 通知黑格 2024-08-22 新上 这个是异步的不会阻塞当前进程
|
|
|
SaberGM::post('https://fob.ai.cc/api/email_new_push',[
|
|
|
'sign' => md5(date('ymd').'fob.ai.cc.email'),
|
|
|
'id' => $id,
|
|
|
'subject' => $data['subject'],
|
|
|
'udate' => $data['udate'],
|
|
|
'from' => $data['from'],
|
|
|
'tos' => array_column(json_decode($data['to_name'],1),'email')
|
|
|
]);
|
|
|
try {
|
|
|
SaberGM::post('https://fob.ai.cc/api/email_new_push',[
|
|
|
'sign' => md5(date('ymd').'fob.ai.cc.email'),
|
|
|
'id' => $id,
|
|
|
'subject' => $data['subject'],
|
|
|
'udate' => $data['udate'],
|
|
|
'from' => $data['from'],
|
|
|
'tos' => array_column(json_decode($data['to_name'],1),'email')
|
|
|
]);
|
|
|
}catch (\Throwable $e){
|
|
|
// 就算异常了也不在推送了
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
|
...
|
...
|
|