作者 张关杰

Merge branch 'develop' of http://47.244.231.31:8099/zhl/globalso-v6 into develop

... ... @@ -79,32 +79,22 @@ class TencentCosService extends BaseService
$httpHeaders = rtrim($httpHeaders, "&");
//生成HttpString
$httpMethod = Str::lower($httpVerb);
$uriPathname = $path.'/'.$fileName;
$uriPathname = \request()->getPathInfo();
$httpString = $httpMethod . "\n" . $uriPathname . "\n" . $httpParameters . "\n" . $httpHeaders . "\n";
//生成 StringToSign
$sha1String = sha1($httpString);
$stringToSign = "sha1\n" . $keyTime . "\n" . $sha1String . "\n";
$filePath = $path.'/'.$fileName;
$sign = hash_hmac( 'sha1', $stringToSign, $signKey );
$authorization =
"q-sign-algorithm=sha1&q-ak={$this->config['secretId']}&q-sign-time={$keyTime}&q-key-time={$keyTime}&q-header-list=&q-url-param-list=&q-signature={$sign}";
$url = "https://{$this->config['bucket']}.cos.{$this->config['cosRegion']}.myqcloud.com{$uriPathname}";
$url = "https://{$this->config['bucket']}.cos.{$this->config['cosRegion']}.myqcloud.com{$filePath}";
// 打开文件流
$filePathUrl = config('filesystems.disks.upload')['root'].$path.'/'.$fileName;
return $this->http_put($url,$contentType,$authorization,$date,$filePathUrl);
}
/**
* @param Request $request
* @remark :生成$urlParamList + $httpParameters
* @name :ceshi
* @author :lyh
* @method :post
* @time :2023/7/19 14:05
*/
public function queryParameters(Request $request){
}
/**
* @remark :上传文件到第三方
* @name : (http_put
* @author :lyh
... ...