作者 lyh

gx

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