作者 邓超

sync

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