From fe7930d06d8f62a4919cf025e2e8e6bc91eabd62 Mon Sep 17 00:00:00 2001 From: OctaAcid Date: Wed, 19 Apr 2023 22:22:56 +0800 Subject: [PATCH] chore: removed secretId from code --- installer/Installer/Model.cs | 4 ++-- installer/InstallerUpdater/Program.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/installer/Installer/Model.cs b/installer/Installer/Model.cs index faaa07f..adfa026 100644 --- a/installer/Installer/Model.cs +++ b/installer/Installer/Model.cs @@ -458,8 +458,8 @@ namespace Downloader .Build(); // 创建 CosXmlConfig 对象 // 永久密钥访问凭证 - string secretId = "AKIDVpzdDcmhS0KNAj5FLG0WnpcBconY9UYN"; //"云 API 密钥 SecretId"; - string secretKey = "f2FDyVnpgNr67urZ3HF4f5KL8i2DCzY2"; //"云 API 密钥 SecretKey"; + string secretId = "***"; //"云 API 密钥 SecretId"; + string secretKey = "***"; //"云 API 密钥 SecretKey"; long durationSecond = 1000; // 每次请求签名有效时长,单位为秒 QCloudCredentialProvider cosCredentialProvider = new DefaultQCloudCredentialProvider( diff --git a/installer/InstallerUpdater/Program.cs b/installer/InstallerUpdater/Program.cs index 5743688..1a76005 100644 --- a/installer/InstallerUpdater/Program.cs +++ b/installer/InstallerUpdater/Program.cs @@ -57,8 +57,8 @@ namespace Program .Build(); // 创建 CosXmlConfig 对象 // 永久密钥访问凭证 - string secretId = "AKIDVpzdDcmhS0KNAj5FLG0WnpcBconY9UYN"; //"云 API 密钥 SecretId"; - string secretKey = "f2FDyVnpgNr67urZ3HF4f5KL8i2DCzY2"; //"云 API 密钥 SecretKey"; + string secretId = "***"; //"云 API 密钥 SecretId"; + string secretKey = "***"; //"云 API 密钥 SecretKey"; long durationSecond = 1000; // 每次请求签名有效时长,单位为秒 QCloudCredentialProvider cosCredentialProvider = new DefaultQCloudCredentialProvider(