From 6c70b459d5767806cf59e2c167745df7e0ba94a4 Mon Sep 17 00:00:00 2001 From: oneRain Date: Mon, 16 Sep 2019 11:06:49 +0800 Subject: [PATCH] =?UTF-8?q?*=20AppRouterController.cs:=20chore:=20?= =?UTF-8?q?=E8=B0=83=E6=95=B4=20app=20router=20=E5=9F=9F=E5=90=8D=E5=8F=8A?= =?UTF-8?q?=E7=BB=9F=E4=B8=80=E8=AE=BE=E7=BD=AE=E5=9F=9F=E5=90=8D=E6=96=B9?= =?UTF-8?q?=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * AVClient.cs: --- .../AppRouter/Internal/AppRouter/AppRouterController.cs | 2 +- Storage/Storage/Public/AVClient.cs | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) 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; } ///