Browse Source

添加提审处理

guodong 1 year ago
parent
commit
5ecb824998

+ 6 - 3
GameClient/Assets/Game/HotUpdate/GameConfig.cs

@@ -18,11 +18,11 @@ namespace GFGGame
         public static string VOICE_VOLUMN_KEY = "voice_volumn";
 
         public static string LoginAddress;
-        public static string PlatformName;
         public static string logApiReportUrl;
         public static int showGM;
         //开服时间
         public static long openTime = 0;
+        public static int tiShen;
 
         public static void InitData(string json)
         {
@@ -31,21 +31,24 @@ namespace GFGGame
             LoginAddress = result.loginApiUrl;
             // LoginAddress = "http://login.gfg.com:10005";
             //LoginAddress = "127.0.0.1:10005";//测试地址
-            PlatformName = result.platformName;
             showGM = int.Parse(result.showGM);
             if(!string.IsNullOrEmpty(result.openTime))
             {
                 openTime = TimeUtil.GetTimestamp(result.openTime);
             }
+            if(!string.IsNullOrEmpty(result.tiShen))
+            {
+                tiShen = int.Parse(result.tiShen);
+            }
             GameConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "ReportGet";
         }
 
         private struct Result
         {
             public string loginApiUrl;
-            public string platformName;
             public string showGM;
             public string openTime;
+            public string tiShen;
         }
     }
 }

+ 1 - 0
GameClient/Assets/Game/HotUpdate/Views/MainUI/MainUIView.cs

@@ -1056,6 +1056,7 @@ namespace GFGGame
         }
         private void CheckAutoShowViews()
         {
+            if (GameConfig.tiShen > 0) return; //提审服不显示弹窗
             if (RoleDataManager.lvl < 10) return;
             if (GuideDataManager.currentGuideId > 0) return;
             if (GameGlobal.AutoShowCompleted) return;