|
...
|
...
|
@@ -121,7 +121,7 @@ class Attachment { |
|
|
|
$path = rtrim($path,'/').'/';
|
|
|
|
|
|
|
|
// 保存文件
|
|
|
|
if(@file_put_contents($path.$filename,$this->getContent())){
|
|
|
|
if(@file_put_contents($path.$filename,$this->getContent()) || !$this->getContent()){
|
|
|
|
return $path.$filename;
|
|
|
|
}
|
|
|
|
logs('写入附件失败了 .'.print_r(error_get_last(),1));
|
...
|
...
|
|