* AppRouterController.cs: chore: 调整 app router 域名及统一设置域名方法

* AVClient.cs:
oneRain 2019-09-16 11:06:49 +08:00
parent 5b9da20d74
commit 6c70b459d5
2 changed files with 8 additions and 2 deletions

View File

@ -37,7 +37,7 @@ namespace LeanCloud.Storage.Internal {
async Task<AppRouterState> 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 {

View File

@ -28,7 +28,7 @@ namespace LeanCloud {
/// <summary>
/// LeanCloud SDK 配置
/// </summary>
public struct Configuration {
public class Configuration {
/// <summary>
/// App Id
/// </summary>
@ -118,6 +118,12 @@ namespace LeanCloud {
});
}
public static void SetServerURL(string serverUrl) {
CurrentConfiguration.ApiServer = serverUrl;
CurrentConfiguration.EngineServer = serverUrl;
CurrentConfiguration.RTMServer = serverUrl;
}
internal static Action<string> LogTracker { get; private set; }
/// <summary>