|
|
|
@@ -397,8 +397,9 @@ namespace Downloader |
|
|
|
.Build(); // 创建 CosXmlConfig 对象 |
|
|
|
|
|
|
|
// 永久密钥访问凭证 |
|
|
|
string secretId = "***"; //"云 API 密钥 SecretId"; |
|
|
|
string secretKey = "***"; //"云 API 密钥 SecretKey"; |
|
|
|
string secretId = "AKIDvhEVXN4cv0ugIlFYiniV6Wk1McfkplYA"; //"云 API 密钥 SecretId"; |
|
|
|
string secretKey = "YyGLGCJG4f5VsEUddnz9JSRPSSK8sYBo"; //"云 API 密钥 SecretKey"; |
|
|
|
|
|
|
|
|
|
|
|
long durationSecond = 1000; // 每次请求签名有效时长,单位为秒 |
|
|
|
QCloudCredentialProvider cosCredentialProvider = new DefaultQCloudCredentialProvider( |
|
|
|
@@ -1113,7 +1114,7 @@ namespace WebConnect |
|
|
|
try |
|
|
|
{ |
|
|
|
string content; |
|
|
|
client.DefaultRequestHeaders.Authorization = new("bearertoken", logintoken); |
|
|
|
client.DefaultRequestHeaders.Authorization = new("Bearer", logintoken); |
|
|
|
if (!File.Exists(tarfile)) |
|
|
|
{ |
|
|
|
//Console.WriteLine("文件不存在!"); |
|
|
|
|