修改阿里云文件上传引擎

This commit is contained in:
lewis 2025-08-21 10:23:25 +08:00
parent 6ad1adaca1
commit cfee3f3022

View File

@ -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;
}
/**