|
@@ -32,7 +32,8 @@ namespace GFGGame
|
|
|
public static void GetGameCfg()
|
|
|
{
|
|
|
var url = LauncherConfig.cfgUrl.Replace("{cfgName}", GameGlobal.cfgName);
|
|
|
- HttpTool.Instance.Get(url, (string data) => {
|
|
|
+ HttpTool.Instance.Get(url, (string data) =>
|
|
|
+ {
|
|
|
GameGlobal.InitData(data);
|
|
|
//显示登录
|
|
|
LoginController.ShowLogin();
|
|
@@ -99,6 +100,10 @@ namespace GFGGame
|
|
|
await InstanceZonesSProxy.GetInstanceZonesInfos();
|
|
|
await StorageSProxy.ReqGetClientValues();
|
|
|
|
|
|
+ GameGlobal.lastLoginTime = StorageDataManager.Instance.GetStorageValue(ConstStorageId.LAST_LOGIN_TIME);
|
|
|
+ long lastTime = GameGlobal.myNumericComponent.GetAsInt(NumericType.OnlineTimeSecs);
|
|
|
+ StorageSProxy.ReqSetClientValue(ConstStorageId.LAST_LOGIN_TIME, (int)lastTime).Coroutine();
|
|
|
+
|
|
|
int skipGuide = StorageDataManager.Instance.GetStorageValue(ConstStorageId.STORAGE_SKIP_GUIDE);
|
|
|
|
|
|
if (skipGuide <= 0 && LauncherConfig.netType == EnumNetType.LOCAL)
|
|
@@ -132,7 +137,7 @@ namespace GFGGame
|
|
|
GameGlobal.userId = 0;
|
|
|
GameGlobal.userAge = 0;
|
|
|
GameGlobal.skipGuide = false;
|
|
|
- if(GameGlobal.myUnit != null)
|
|
|
+ if (GameGlobal.myUnit != null)
|
|
|
{
|
|
|
GameGlobal.myUnit.Dispose();
|
|
|
GameGlobal.myUnit = null;
|