作者 lyh

gx

@@ -43,8 +43,6 @@ class TencentCosService extends BaseService @@ -43,8 +43,6 @@ class TencentCosService extends BaseService
43 public function upload_image($path,$fileName){ 43 public function upload_image($path,$fileName){
44 // 构建请求URL 44 // 构建请求URL
45 $pathname = '/'.$this->config['bucket'].$path.'/'.$fileName; 45 $pathname = '/'.$this->config['bucket'].$path.'/'.$fileName;
46 - var_dump($pathname);  
47 - die();  
48 $signature = $this->generateSignature(); 46 $signature = $this->generateSignature();
49 $url = 'https://'.$this->config['bucket'].'.cos.'.$this->config['cosRegion'].'.myqcloud.com'.$pathname.'?sign='.$signature; 47 $url = 'https://'.$this->config['bucket'].'.cos.'.$this->config['cosRegion'].'.myqcloud.com'.$pathname.'?sign='.$signature;
50 // 打开文件流 48 // 打开文件流