From 2f7479b48622cc91d03dd9628d33197cabe3d677 Mon Sep 17 00:00:00 2001 From: lihsai0 Date: Thu, 19 Sep 2024 19:36:58 +0800 Subject: [PATCH] feat: change default uc host --- src/Qiniu/Storage/Config.cs | 2 +- src/QiniuTests/Storage/ConfigTests.cs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Qiniu/Storage/Config.cs b/src/Qiniu/Storage/Config.cs index 815256e..949f4e9 100644 --- a/src/Qiniu/Storage/Config.cs +++ b/src/Qiniu/Storage/Config.cs @@ -14,7 +14,7 @@ public class Config /// /// 默认空间管理域名 /// - public static string DefaultUcHost = "uc.qbox.me"; + public static string DefaultUcHost = "uc.qiniuapi.com"; /// /// 默认查询区域域名 /// diff --git a/src/QiniuTests/Storage/ConfigTests.cs b/src/QiniuTests/Storage/ConfigTests.cs index 8ea1f67..1215a15 100644 --- a/src/QiniuTests/Storage/ConfigTests.cs +++ b/src/QiniuTests/Storage/ConfigTests.cs @@ -11,7 +11,7 @@ public void UcHostTest() { Config config = new Config(); string ucHost = config.UcHost(); - Assert.AreEqual("http://uc.qbox.me", ucHost); + Assert.AreEqual("http://uc.qiniuapi.com", ucHost); config.SetUcHost("uc.example.com"); ucHost = config.UcHost(); Assert.AreEqual("http://uc.example.com", ucHost); @@ -19,7 +19,7 @@ public void UcHostTest() config = new Config(); config.UseHttps = true; ucHost = config.UcHost(); - Assert.AreEqual("https://uc.qbox.me", ucHost); + Assert.AreEqual("https://uc.qiniuapi.com", ucHost); config.SetUcHost("uc.example.com"); ucHost = config.UcHost(); Assert.AreEqual("https://uc.example.com", ucHost);