正在显示
1 个修改的文件
包含
5 行增加
和
0 行删除
| @@ -64,6 +64,7 @@ class syncMail { | @@ -64,6 +64,7 @@ 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 | + try { | ||
| 67 | SaberGM::post('https://fob.ai.cc/api/email_new_push',[ | 68 | SaberGM::post('https://fob.ai.cc/api/email_new_push',[ | 
| 68 | 'sign' => md5(date('ymd').'fob.ai.cc.email'), | 69 | 'sign' => md5(date('ymd').'fob.ai.cc.email'), | 
| 69 | 'id' => $id, | 70 | 'id' => $id, | 
| @@ -72,6 +73,10 @@ class syncMail { | @@ -72,6 +73,10 @@ class syncMail { | ||
| 72 | 'from' => $data['from'], | 73 | 'from' => $data['from'], | 
| 73 | 'tos' => array_column(json_decode($data['to_name'],1),'email') | 74 | 'tos' => array_column(json_decode($data['to_name'],1),'email') | 
| 74 | ]); | 75 | ]); | 
| 76 | + }catch (\Throwable $e){ | ||
| 77 | + // 就算异常了也不在推送了 | ||
| 78 | + } | ||
| 79 | + | ||
| 75 | } | 80 | } | 
| 76 | 81 | ||
| 77 | 82 | 
- 
请 注册 或 登录 后发表评论
