| 123456789101112131415161718192021222324252627282930313233343536 | 
							- using System.Collections;
 
- using ET;
 
- using LitJson;
 
- using UnityEngine;
 
- namespace GFGGame
 
- {
 
-     public class GameConfig
 
-     {
 
-         public static string LoginAddress;
 
-         public static string PlatformName;
 
-         public static string logApiReportUrl;
 
-         public static int showGM;
 
-         //渠道id
 
-         public static int ChannelId = 1;
 
-         public static void InitData(string json)
 
-         {
 
-             ET.Log.Debug($"gamecfg \n{json}");
 
-             var result = JsonMapper.ToObject<Result>(json);
 
-             LoginAddress = result.loginApiUrl;
 
-             //LoginAddress = "10.108.64.127:10005";
 
-             PlatformName = result.platformName;
 
-             showGM = int.Parse(result.showGM);
 
-             GameConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "ReportGet";
 
-         }
 
-         private struct Result
 
-         {
 
-             public string loginApiUrl;
 
-             public string platformName;
 
-             public string showGM;
 
-         }
 
-     }
 
- }
 
 
  |