Browse Source

merge

tags/0.1.0
sendssf 2 years ago
parent
commit
07c6cdba04
2 changed files with 5 additions and 4 deletions
  1. +1
    -1
      dependency/Dockerfile/Dockerfile
  2. +4
    -3
      installer/Installer/Model.cs

+ 1
- 1
dependency/Dockerfile/Dockerfile View File

@@ -32,7 +32,7 @@ RUN make -j$(nproc)
RUN make install RUN make install
RUN ldconfig RUN ldconfig


COPY ./CAPI /usr/local/PlayerCode
COPY ./README.md /usr/local/PlayerCode
RUN cd /usr/local/PlayerCode/CAPI RUN cd /usr/local/PlayerCode/CAPI
RUN cmake CMakeLists.txt RUN cmake CMakeLists.txt
RUN make RUN make

+ 4
- 3
installer/Installer/Model.cs View File

@@ -397,8 +397,9 @@ namespace Downloader
.Build(); // 创建 CosXmlConfig 对象 .Build(); // 创建 CosXmlConfig 对象


// 永久密钥访问凭证 // 永久密钥访问凭证
string secretId = "***"; //"云 API 密钥 SecretId";
string secretKey = "***"; //"云 API 密钥 SecretKey";
string secretId = "AKIDvhEVXN4cv0ugIlFYiniV6Wk1McfkplYA"; //"云 API 密钥 SecretId";
string secretKey = "YyGLGCJG4f5VsEUddnz9JSRPSSK8sYBo"; //"云 API 密钥 SecretKey";



long durationSecond = 1000; // 每次请求签名有效时长,单位为秒 long durationSecond = 1000; // 每次请求签名有效时长,单位为秒
QCloudCredentialProvider cosCredentialProvider = new DefaultQCloudCredentialProvider( QCloudCredentialProvider cosCredentialProvider = new DefaultQCloudCredentialProvider(
@@ -1113,7 +1114,7 @@ namespace WebConnect
try try
{ {
string content; string content;
client.DefaultRequestHeaders.Authorization = new("bearertoken", logintoken);
client.DefaultRequestHeaders.Authorization = new("Bearer", logintoken);
if (!File.Exists(tarfile)) if (!File.Exists(tarfile))
{ {
//Console.WriteLine("文件不存在!"); //Console.WriteLine("文件不存在!");


Loading…
Cancel
Save