|
...
|
...
|
@@ -44,7 +44,7 @@ class TencentCosService extends BaseService |
|
|
|
// 构建请求URL
|
|
|
|
$expiredTime = time() + 3600;
|
|
|
|
$pathname = '/'.$this->config['bucket'].'/'.$fileName;
|
|
|
|
$signature = $this->generateSignature($this->config['secretKey'], $pathname, $expiredTime);
|
|
|
|
$signature = $this->generateSignature($this->config['secretKey'], $pathname, $path ,$expiredTime);
|
|
|
|
$url = 'https://'.$this->config['bucket'].'.cos.'.$this->config['cosRegion'].'.myqcloud.com'.$pathname.'?sign='.$signature;
|
|
|
|
// 打开文件流
|
|
|
|
$url_path = config('filesystems.disks.upload')['root'].$path;
|
...
|
...
|
|