正在显示
1 个修改的文件
包含
13 行增加
和
8 行删除
@@ -64,14 +64,19 @@ class syncMail { | @@ -64,14 +64,19 @@ class syncMail { | ||
64 | // 邮件过滤 这些邮箱都是系统邮箱 | 64 | // 邮件过滤 这些邮箱都是系统邮箱 |
65 | if(!in_array($data['from'],$filterEmail) || !preg_match("/^((no-?reply)|(postmaster)|(mailer-daemon)|(email-notifications)|(googleplay-noreply))@/i",$data['from'])){ | 65 | if(!in_array($data['from'],$filterEmail) || !preg_match("/^((no-?reply)|(postmaster)|(mailer-daemon)|(email-notifications)|(googleplay-noreply))@/i",$data['from'])){ |
66 | // 通知黑格 2024-08-22 新上 这个是异步的不会阻塞当前进程 | 66 | // 通知黑格 2024-08-22 新上 这个是异步的不会阻塞当前进程 |
67 | - SaberGM::post('https://fob.ai.cc/api/email_new_push',[ | ||
68 | - 'sign' => md5(date('ymd').'fob.ai.cc.email'), | ||
69 | - 'id' => $id, | ||
70 | - 'subject' => $data['subject'], | ||
71 | - 'udate' => $data['udate'], | ||
72 | - 'from' => $data['from'], | ||
73 | - 'tos' => array_column(json_decode($data['to_name'],1),'email') | ||
74 | - ]); | 67 | + try { |
68 | + SaberGM::post('https://fob.ai.cc/api/email_new_push',[ | ||
69 | + 'sign' => md5(date('ymd').'fob.ai.cc.email'), | ||
70 | + 'id' => $id, | ||
71 | + 'subject' => $data['subject'], | ||
72 | + 'udate' => $data['udate'], | ||
73 | + 'from' => $data['from'], | ||
74 | + 'tos' => array_column(json_decode($data['to_name'],1),'email') | ||
75 | + ]); | ||
76 | + }catch (\Throwable $e){ | ||
77 | + // 就算异常了也不在推送了 | ||
78 | + } | ||
79 | + | ||
75 | } | 80 | } |
76 | 81 | ||
77 | 82 |
-
请 注册 或 登录 后发表评论