diff --git a/AppRouter/AppRouter/Internal/AppRouter/AppRouterController.cs b/AppRouter/AppRouter/Internal/AppRouter/AppRouterController.cs index a5c624d..f56933a 100644 --- a/AppRouter/AppRouter/Internal/AppRouter/AppRouterController.cs +++ b/AppRouter/AppRouter/Internal/AppRouter/AppRouterController.cs @@ -37,7 +37,7 @@ namespace LeanCloud.Storage.Internal { async Task QueryAsync(string appId) { Console.WriteLine("QueryAsync"); - string url = string.Format("https://app-router.leancloud.cn/2/route?appId={0}", appId); + string url = string.Format("https://app-router.com/2/route?appId={0}", appId); HttpClient client = new HttpClient(); HttpRequestMessage request = new HttpRequestMessage { diff --git a/Storage/Storage/Public/AVClient.cs b/Storage/Storage/Public/AVClient.cs index 590f1ee..fd423c2 100644 --- a/Storage/Storage/Public/AVClient.cs +++ b/Storage/Storage/Public/AVClient.cs @@ -28,7 +28,7 @@ namespace LeanCloud { /// /// LeanCloud SDK 配置 /// - public struct Configuration { + public class Configuration { /// /// App Id /// @@ -118,6 +118,12 @@ namespace LeanCloud { }); } + public static void SetServerURL(string serverUrl) { + CurrentConfiguration.ApiServer = serverUrl; + CurrentConfiguration.EngineServer = serverUrl; + CurrentConfiguration.RTMServer = serverUrl; + } + internal static Action LogTracker { get; private set; } ///