* AppRouterController.cs: chore: 调整 app router 域名及统一设置域名方法
* AVClient.cs:
parent
5b9da20d74
commit
6c70b459d5
|
@ -37,7 +37,7 @@ namespace LeanCloud.Storage.Internal {
|
||||||
async Task<AppRouterState> QueryAsync(string appId) {
|
async Task<AppRouterState> QueryAsync(string appId) {
|
||||||
Console.WriteLine("QueryAsync");
|
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();
|
HttpClient client = new HttpClient();
|
||||||
HttpRequestMessage request = new HttpRequestMessage {
|
HttpRequestMessage request = new HttpRequestMessage {
|
||||||
|
|
|
@ -28,7 +28,7 @@ namespace LeanCloud {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// LeanCloud SDK 配置
|
/// LeanCloud SDK 配置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public struct Configuration {
|
public class Configuration {
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// App Id
|
/// App Id
|
||||||
/// </summary>
|
/// </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; }
|
internal static Action<string> LogTracker { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
Loading…
Reference in New Issue