Bläddra i källkod

ios更新提示

guodong 1 år sedan
förälder
incheckning
61f3f7f5da

+ 1 - 0
GameClient/Assets/Game/Launcher/LauncherConfig.cs

@@ -37,6 +37,7 @@ namespace GFGGame
         public static string logApiRootUrl;//上报普通日志接口
         public static string logApiReportLauncherUrl;//上报节点日志接口
         public static string apkVersion;
+        //0 正常,1 维护中,2 提审中
         public static int serverStatus;
         public static int onDebug;
         public static string manifest_v;

+ 12 - 1
GameClient/Assets/Game/Launcher/LauncherController.cs

@@ -76,7 +76,18 @@ namespace GFGGame
 
         private static void DownloadApk()
         {
-            Alert.Show("需要安装新的安装包,请联系研发获取。")
+            string message = "需要安装新的安装包,请联系研发获取。";
+#if PT_IOS
+            if(LauncherConfig.serverStatus == 2)
+            {
+                message = "有新的版本,请前往TestFlight更新。";
+            }
+            else
+            {
+                message = "有新的版本,请前往AppStore更新。";
+            }
+#endif
+            Alert.Show("message")
                     .SetLeftButton(true, "知道了", (data) =>
                     {