| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 | 
							- using LitJson;
 
- namespace GFGGame
 
- {
 
-     public class GameConfig
 
-     {
 
-         public const float LongPressGestureTrigger = 1f;
 
-         public static string SOUND_KEY = "sound";
 
-         public static string MUSIC_KEY = "music";
 
-         public static string VOICE_KEY = "voice";
 
-         public static string SOUND_VOLUMN_KEY = "sound_volumn";
 
-         public static string MUSIC_VOLUMN_KEY = "music_volumn";
 
-         public static string VOICE_VOLUMN_KEY = "voice_volumn";
 
-         public static string LoginAddress;
 
-         public static string logApiReportUrl;
 
-         public static int showGM;
 
-         //开服时间
 
-         public static long openTime = 0;
 
-         public static int tsStatus;
 
-         public static int tsServer;
 
-         //兑换码
 
-         public static int hCode;
 
-         public static void InitData(string json)
 
-         {
 
-             ET.Log.Debug($"gamecfg \n{json}");
 
-             var result = JsonMapper.ToObject<Result>(json);
 
-             LoginAddress = result.loginApiUrl;
 
-             //LoginAddress = "43.139.184.240:10003";
 
-             //LoginAddress = "192.168.1.7:10005";//测试地址
 
-             //LoginAddress = "192.168.1.191:10005";//测试地址
 
-             showGM = int.Parse(result.showGM);
 
-             if(!string.IsNullOrEmpty(result.openTime))
 
-             {
 
-                 openTime = TimeUtil.GetTimestamp(result.openTime);
 
-             }
 
-             if(!string.IsNullOrEmpty(result.tsStatus))
 
-             {
 
-                 tsStatus = int.Parse(result.tsStatus);
 
-             }
 
-             if (!string.IsNullOrEmpty(result.tsServer))
 
-             {
 
-                 tsServer = int.Parse(result.tsServer);
 
-             }
 
-             if(!string.IsNullOrEmpty(result.hCode))
 
-             {
 
-                 hCode = int.Parse(result.hCode);
 
-             }
 
-             GameConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "ReportGet";
 
-         }
 
-         private struct Result
 
-         {
 
-             public string loginApiUrl;
 
-             public string showGM;
 
-             public string openTime;
 
-             public string tsStatus;
 
-             public string tsServer;
 
-             public string hCode;
 
-             public string serverStatus;
 
-             public string statusPrompt;
 
-         }
 
-     }
 
- }
 
 
  |