|
@@ -3,6 +3,7 @@ using FairyGUI;
|
|
|
using UI.Login;
|
|
|
using ET;
|
|
|
using GFGGame.Launcher;
|
|
|
+using System;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
@@ -196,19 +197,18 @@ namespace GFGGame
|
|
|
|
|
|
private void TryLogin()
|
|
|
{
|
|
|
- var url = LauncherConfig.cfgUrl.Replace("{cfgName}", GameGlobal.cfgName);
|
|
|
- url = url + "?t=" + TimeHelper.ClientNow();
|
|
|
- HttpTool.Instance.Get(url, (string data) =>
|
|
|
+ var url = LauncherConfig.cfgUrl.Replace("{cfgName}", LauncherConfig.cfgName);
|
|
|
+ url = url + "?t=" + DateTime.Now.Ticks;
|
|
|
+ HttpTool.Instance.Get(url, (string json) =>
|
|
|
{
|
|
|
- //重新加载游戏配置
|
|
|
- GameConfig.InitData(data);
|
|
|
- if (GameConfig.serverStatus == 1)
|
|
|
+ LauncherConfig.InitPlatform(json);
|
|
|
+ if (LauncherConfig.serverStatus == 1)
|
|
|
{
|
|
|
- if (string.IsNullOrEmpty(GameConfig.statusPrompt))
|
|
|
+ if (string.IsNullOrEmpty(LauncherConfig.statusPrompt))
|
|
|
{
|
|
|
- GameConfig.statusPrompt = "游戏正在更新维护中,请稍后再试。";
|
|
|
+ LauncherConfig.statusPrompt = "游戏正在更新维护中,请稍后再试。";
|
|
|
}
|
|
|
- AlertSystem.Show(GameConfig.statusPrompt)
|
|
|
+ AlertSystem.Show(LauncherConfig.statusPrompt)
|
|
|
.SetLeftButton(true, "知道了", (data) =>
|
|
|
{
|
|
|
Application.Quit();
|
|
@@ -230,6 +230,7 @@ namespace GFGGame
|
|
|
LoginController.GetRoles().Coroutine();
|
|
|
}
|
|
|
});
|
|
|
+
|
|
|
}
|
|
|
|
|
|
private void ResetLoginButton()
|