|
...
|
...
|
@@ -43,6 +43,8 @@ class TencentCosService extends BaseService |
|
|
|
public function upload_image($path,$image_type){
|
|
|
|
// 构造请求方法、URL和头部
|
|
|
|
$url = 'https://' . $this->config['bucket'] . '.cos.' . $this->config['cosRegion'] . '.myqcloud.com'.$path;
|
|
|
|
var_dump($url);
|
|
|
|
die();
|
|
|
|
$this->method = 'PUT';
|
|
|
|
$headers = array(
|
|
|
|
'Authorization: ' . $this->cosAuthorization($this->config['appId'], $this->config['secretId'], $this->config['secretKey'], $this->method, '/' . $this->config['bucket'] . $path),
|
...
|
...
|
|