Browse Source

添加报错日志开关

guodong 3 years ago
parent
commit
794dbad49a

+ 5 - 5
GameClient/Assets/Game/HotUpdate/Views/Card/CardFosterView.cs

@@ -166,12 +166,12 @@ namespace GFGGame
                 _cardObj = null;
             }
             string resPath = ResPathUtil.GetCardAnimationPath(_cardData.resources[_cardData.resIndex]);
-            // if (Versions.Contains(resPath))
-            // {
-            _cardObj = DressUpUtil.AddAnimationObj(resPath);
-            SceneController.AddObjectToView(_cardObj, _wrapper, _ui.m_comCard.m_comCardHolder.m_holder, resPath, out _cardObj, out _wrapper);
+             if (Versions.Contains(resPath))
+            {
+                _cardObj = DressUpUtil.AddAnimationObj(resPath);
+                SceneController.AddObjectToView(_cardObj, _wrapper, _ui.m_comCard.m_comCardHolder.m_holder, resPath, out _cardObj, out _wrapper);
 
-            // }
+            }
 
             if (_cardObj != null)
             {

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

@@ -25,6 +25,7 @@ namespace GFGGame
         public static string logApiUrl;
         public static string apkVersion;
         public static int serverStatus;
+        public static int onDebug;
 
         public static string resKey
         {
@@ -67,6 +68,7 @@ namespace GFGGame
             LauncherConfig.apkVersion = result.apkVersion;
             LauncherConfig.serverStatus = int.Parse(result.serverStatus);
             LauncherConfig.platformId = int.Parse(result.platformId);
+            LauncherConfig.onDebug = int.Parse(result.onDebug);
             ET.Log.Debug($"platformId {LauncherConfig.platformId}");
         }
 
@@ -79,6 +81,7 @@ namespace GFGGame
             public string apkVersion;
             public string serverStatus;
             public string platformId;
+            public string onDebug;
         }
 
     }