作者 lyh

gx

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