作者 邓超

sync

@@ -593,8 +593,8 @@ class SyncMail { @@ -593,8 +593,8 @@ class SyncMail {
593 'filename' => $itemBody->getFilename(), 593 'filename' => $itemBody->getFilename(),
594 'path' => $itemBody->save(MAIL_ATTACHMENT_PATH) 594 'path' => $itemBody->save(MAIL_ATTACHMENT_PATH)
595 ]; 595 ];
596 - if(!$tmp){  
597 - throw new \Exception('请检查附件是否有写入权限'); 596 + if(!$tmp['path']){
  597 + throw new \Exception('请检查附件是否有写入权限 data id '.$id);
598 } 598 }
599 if($itemBody->getContentId()){ 599 if($itemBody->getContentId()){
600 $tmp['content-id'] = $itemBody->getContentId(); 600 $tmp['content-id'] = $itemBody->getContentId();