作者 lyh

gx

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