作者 lyh

gx

@@ -47,7 +47,7 @@ class TencentCosService extends BaseService @@ -47,7 +47,7 @@ class TencentCosService extends BaseService
47 $signature = $this->generateSignature($this->config['secretKey'], $pathname, $path ,$expiredTime); 47 $signature = $this->generateSignature($this->config['secretKey'], $pathname, $path ,$expiredTime);
48 $url = 'https://'.$this->config['bucket'].'.cos.'.$this->config['cosRegion'].'.myqcloud.com'.$pathname.'?sign='.$signature; 48 $url = 'https://'.$this->config['bucket'].'.cos.'.$this->config['cosRegion'].'.myqcloud.com'.$pathname.'?sign='.$signature;
49 // 打开文件流 49 // 打开文件流
50 - $url_path = config('filesystems.disks.upload')['root'].$path; 50 + $url_path = config('filesystems.disks.upload')['root'].$path.'/'.$fileName;
51 var_dump($url_path); 51 var_dump($url_path);
52 die(); 52 die();
53 $fileContent = file_get_contents($url_path); 53 $fileContent = file_get_contents($url_path);