作者 lyh

gx

... ... @@ -49,7 +49,7 @@ class AmazonS3Service
'Bucket' => $this->bucket,
'Key' => $key,
'SourceFile' => $body,
'ACL' => 'public-read', // 设置图片为公共可读,可根据需求修改
// 'ACL' => 'public-read', // 设置图片为公共可读,可根据需求修改
]);
@file_put_contents(storage_path('logs/lyh_error.log'), var_export('ok:'.$result['ObjectURL'], true) . PHP_EOL, FILE_APPEND);
return $result['ObjectURL'];
... ...