| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 | 
							- using LitJson;
 
- namespace GFGGame
 
- {
 
-     public class LauncherConfig
 
-     {
 
-         public enum EnumNetType { DEV, LOCAL, TEMP }
 
-         public static EnumNetType netType = EnumNetType.LOCAL;
 
-         public static string cfgName;
 
-         //热更代码存放位置
 
-         public const string DllDirHotfix = "Assets/ResIn/Dll/Update/";
 
-         public const string DllDirAOT = "Assets/ResIn/Dll/AOT/";
 
-         public const int HTTP_GET_TIME_OUT = 3;
 
-         public const int HTTP_POST_TIME_OUT = 15;
 
-         public static string SOUND_KEY = "sound";
 
-         public static string MUSIC_KEY = "music";
 
-         public const string SQL_FILE_NAME = "excelConfig.sqlite.bytes";
 
-         public static string CDN_ROOT;
 
-         public static string loginApiUrl;
 
-         public static string gameApiUrl;
 
-         public static string cfgUrl;
 
-         //平台id
 
-         public static int platformId = 1;
 
-         public static string logKey;
 
-         public static string logApiUrl;
 
-         public static string apkVersion;
 
-         public static int serverStatus;
 
-         public static int onDebug;
 
-         public static string manifest_v;
 
-         public static string resKey
 
-         {
 
-             get
 
-             {
 
- #if PT_TEMP
 
-                 return "dfs";
 
- #else
 
-                 return null;
 
- #endif
 
-             }
 
-         }
 
-         public static void InitScriptCompilation()
 
-         {
 
- #if PT_DEV
 
-             //外网dev版本
 
-             netType = EnumNetType.DEV;
 
-             cfgName = "cfg_dev";
 
- #elif PT_TEMP
 
-             netType = EnumNetType.TEMP;
 
-             cfgName = "cfg_temp";
 
- #else
 
-             netType = EnumNetType.LOCAL;
 
-             cfgName = "cfg_local";
 
- #endif
 
-             cfgUrl = "http://gfg1.obs.cn-north-4.myhuaweicloud.com/14/platform/{cfgName}.json";
 
-         }
 
-         public static void InitPlatform(string json)
 
-         {
 
-             ET.Log.Debug($"ptcfg \n{json}");
 
-             var result = JsonMapper.ToObject<Result>(json);
 
-             LauncherConfig.CDN_ROOT = result.cdnRoot;
 
-             //CDN_ROOT = "http://10.108.64.127/";
 
-             LauncherConfig.loginApiUrl = result.loginApiUrl;
 
-             LauncherConfig.logApiUrl = result.logApiUrl;
 
-             LauncherConfig.logKey = result.logKey;
 
-             LauncherConfig.apkVersion = result.apkVersion;
 
-             LauncherConfig.serverStatus = int.Parse(result.serverStatus);
 
-             LauncherConfig.platformId = int.Parse(result.platformId);
 
-             LauncherConfig.onDebug = int.Parse(result.onDebug);
 
-             LauncherConfig.manifest_v = result.manifest_v;
 
-             ET.Log.Debug($"platformId {LauncherConfig.platformId}");
 
-         }
 
-         private struct Result
 
-         {
 
-             public string cdnRoot;
 
-             public string loginApiUrl;
 
-             public string logApiUrl;
 
-             public string logKey;
 
-             public string apkVersion;
 
-             public string serverStatus;
 
-             public string platformId;
 
-             public string onDebug;
 
-             public string manifest_v;
 
-         }
 
-     }
 
- }
 
 
  |