|
...
|
...
|
@@ -54,6 +54,8 @@ class TencentCosService extends BaseService |
|
|
|
'headers' => $this->generateHeaders($this->config['secretId'], $this->config['secretKey']),
|
|
|
|
]);
|
|
|
|
// 若上传成功,则返回上传后的 URL
|
|
|
|
var_dump($response);
|
|
|
|
die();
|
|
|
|
if ($response->getStatusCode() === 200) {
|
|
|
|
return "https://{$this->config['bucket']}.cos.{$this->config['cosRegion']}.myqcloud.com{$objectKey}";
|
|
|
|
}
|
...
|
...
|
|