正在显示
1 个修改的文件
包含
7 行增加
和
1 行删除
| @@ -68,7 +68,13 @@ class AmazonS3Service | @@ -68,7 +68,13 @@ class AmazonS3Service | ||
| 68 | { | 68 | { |
| 69 | $key = str_replace_url($files); | 69 | $key = str_replace_url($files); |
| 70 | // try { | 70 | // try { |
| 71 | - $file_content = file_get_contents($files); | 71 | + $context = stream_context_create([ |
| 72 | + 'ssl' => [ | ||
| 73 | + 'verify_peer' => false, | ||
| 74 | + 'verify_peer_name' => false | ||
| 75 | + ] | ||
| 76 | + ]); | ||
| 77 | + $file_content = file_get_contents($files, false, $context); | ||
| 72 | $result = $this->s3->putObject([ | 78 | $result = $this->s3->putObject([ |
| 73 | 'Bucket' => $this->bucket, | 79 | 'Bucket' => $this->bucket, |
| 74 | 'Key' => $key, | 80 | 'Key' => $key, |
-
请 注册 或 登录 后发表评论