|
...
|
...
|
@@ -50,8 +50,6 @@ class TencentCosService extends BaseService |
|
|
|
);
|
|
|
|
// 打开文件流
|
|
|
|
$url_path = config('filesystems.disks.upload')['root'].$path;
|
|
|
|
var_dump($url_path);
|
|
|
|
die();
|
|
|
|
$file = fopen($url_path, 'r');
|
|
|
|
return $this->http_put($url,$headers,$file,$url_path);
|
|
|
|
}
|
|
...
|
...
|
@@ -78,6 +76,8 @@ class TencentCosService extends BaseService |
|
|
|
// 关闭文件流和CURL句柄
|
|
|
|
fclose($file);
|
|
|
|
curl_close($curl);
|
|
|
|
var_dump($response);
|
|
|
|
die();
|
|
|
|
return $response;
|
|
|
|
}
|
|
|
|
|
...
|
...
|
|