|
@@ -1,7 +1,4 @@
|
|
|
-using System.Collections;
|
|
|
-using ET;
|
|
|
-using LitJson;
|
|
|
-using UnityEngine;
|
|
|
+using LitJson;
|
|
|
|
|
|
namespace GFGGame
|
|
|
{
|
|
@@ -24,6 +21,8 @@ namespace GFGGame
|
|
|
public static long openTime = 0;
|
|
|
public static int tsStatus;
|
|
|
public static int tsServer;
|
|
|
+ //兑换码
|
|
|
+ public static int code;
|
|
|
|
|
|
public static void InitData(string json)
|
|
|
{
|
|
@@ -45,6 +44,10 @@ namespace GFGGame
|
|
|
{
|
|
|
tsServer = int.Parse(result.tsServer);
|
|
|
}
|
|
|
+ if(!string.IsNullOrEmpty(result.code))
|
|
|
+ {
|
|
|
+ code = int.Parse(result.code);
|
|
|
+ }
|
|
|
GameConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "ReportGet";
|
|
|
}
|
|
|
|
|
@@ -55,6 +58,7 @@ namespace GFGGame
|
|
|
public string openTime;
|
|
|
public string tsStatus;
|
|
|
public string tsServer;
|
|
|
+ public string code;
|
|
|
}
|
|
|
}
|
|
|
}
|