فهرست منبع

添加兑换码开关

guodong 1 سال پیش
والد
کامیت
c080c29f87

+ 4 - 4
GameClient/Assets/Game/HotUpdate/GameConfig.cs

@@ -22,7 +22,7 @@ namespace GFGGame
         public static int tsStatus;
         public static int tsServer;
         //兑换码
-        public static int code;
+        public static int hCode;
 
         public static void InitData(string json)
         {
@@ -44,9 +44,9 @@ namespace GFGGame
             {
                 tsServer = int.Parse(result.tsServer);
             }
-            if(!string.IsNullOrEmpty(result.code))
+            if(!string.IsNullOrEmpty(result.hCode))
             {
-                code = int.Parse(result.code);
+                hCode = int.Parse(result.hCode);
             }
             GameConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "ReportGet";
         }
@@ -58,7 +58,7 @@ namespace GFGGame
             public string openTime;
             public string tsStatus;
             public string tsServer;
-            public string code;
+            public string hCode;
         }
     }
 }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Views/RoleInfo/SettingView.cs

@@ -74,7 +74,7 @@ namespace GFGGame
                 _ui.m_suit.Play();
                 _ui.m_c1.SetSelectedIndex(0);
             }
-            _ui.m_btnGiftCode.target.visible = GameConfig.code == 0;
+            _ui.m_btnGiftCode.target.visible = GameConfig.hCode == 0;
         }
 
         protected override void OnHide()