diff --git a/app/common/service/storage/engine/Aliyun.php b/app/common/service/storage/engine/Aliyun.php index ad418b4..0055fde 100755 --- a/app/common/service/storage/engine/Aliyun.php +++ b/app/common/service/storage/engine/Aliyun.php @@ -38,16 +38,15 @@ class Aliyun extends Server $this->config['secret_key'], $this->config['domain'] ); - $ossClient->uploadFile( + return $ossClient->uploadFile( $this->config['bucket'], - $this->fileName, + $save_dir.'/'.$this->fileName, $this->getRealPath() ); } catch (OssException $e) { $this->error = $e->getMessage(); return false; } - return true; } /**