正在显示
1 个修改的文件
包含
2 行增加
和
3 行删除
| @@ -54,9 +54,8 @@ class TencentCosService extends BaseService | @@ -54,9 +54,8 @@ class TencentCosService extends BaseService | ||
| 54 | 'Host: ' . $this->config['bucket'] . '.cos.' . $this->config['cosRegion'] . '.myqcloud.com' | 54 | 'Host: ' . $this->config['bucket'] . '.cos.' . $this->config['cosRegion'] . '.myqcloud.com' |
| 55 | ); | 55 | ); |
| 56 | // 打开文件流 | 56 | // 打开文件流 |
| 57 | - $url_path = config('filesystems.disks.upload')['root'].$path.'/'.$fileName; | ||
| 58 | - $fileContent = file_get_contents($url_path); | ||
| 59 | - return $this->http_put($url,$fileContent); | 57 | + $filePath = config('filesystems.disks.upload')['root'].$path.'/'.$fileName; |
| 58 | + return $this->http_put($url,$filePath,$headers); | ||
| 60 | } | 59 | } |
| 61 | 60 | ||
| 62 | /** | 61 | /** |
-
请 注册 或 登录 后发表评论