正在显示
1 个修改的文件
包含
6 行增加
和
1 行删除
@@ -321,7 +321,7 @@ class SyncMail { | @@ -321,7 +321,7 @@ class SyncMail { | ||
321 | */ | 321 | */ |
322 | protected function saveMail(int $folder_id, array $lists, bool $isBody=false){ | 322 | protected function saveMail(int $folder_id, array $lists, bool $isBody=false){ |
323 | foreach ($lists as $item){ | 323 | foreach ($lists as $item){ |
324 | - | 324 | + try { |
325 | $data = [ | 325 | $data = [ |
326 | 'uid' => $item->uid, | 326 | 'uid' => $item->uid, |
327 | 'subject' => mb_substr($item->header->getSubject(),0,1000),// 控制下,有的蛋疼,整tm多长 | 327 | 'subject' => mb_substr($item->header->getSubject(),0,1000),// 控制下,有的蛋疼,整tm多长 |
@@ -344,6 +344,11 @@ class SyncMail { | @@ -344,6 +344,11 @@ class SyncMail { | ||
344 | 'email_id' => $this->emailId(), | 344 | 'email_id' => $this->emailId(), |
345 | 'is_file' => $item->isAttachment() ? 1: 0 //是否附件 | 345 | 'is_file' => $item->isAttachment() ? 1: 0 //是否附件 |
346 | ]; | 346 | ]; |
347 | + }catch (\Throwable $e){ | ||
348 | + logs([$e->getMessage(),$folder_id,$this->emailId(),$item->uid]); | ||
349 | + continue; | ||
350 | + } | ||
351 | + | ||
347 | 352 | ||
348 | $data['from'] = mb_substr($data['from'],0,120); | 353 | $data['from'] = mb_substr($data['from'],0,120); |
349 | 354 |
-
请 注册 或 登录 后发表评论