正在显示
1 个修改的文件
包含
1 行增加
和
1 行删除
| @@ -49,7 +49,7 @@ class AmazonS3Service | @@ -49,7 +49,7 @@ class AmazonS3Service | ||
| 49 | 'Bucket' => $this->bucket, | 49 | 'Bucket' => $this->bucket, |
| 50 | 'Key' => $key, | 50 | 'Key' => $key, |
| 51 | 'SourceFile' => $body, | 51 | 'SourceFile' => $body, |
| 52 | - 'ACL' => 'public-read', // 设置图片为公共可读,可根据需求修改 | 52 | +// 'ACL' => 'public-read', // 设置图片为公共可读,可根据需求修改 |
| 53 | ]); | 53 | ]); |
| 54 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export('ok:'.$result['ObjectURL'], true) . PHP_EOL, FILE_APPEND); | 54 | @file_put_contents(storage_path('logs/lyh_error.log'), var_export('ok:'.$result['ObjectURL'], true) . PHP_EOL, FILE_APPEND); |
| 55 | return $result['ObjectURL']; | 55 | return $result['ObjectURL']; |
-
请 注册 或 登录 后发表评论