Browse Source

展示错误日志

zhaoyang 2 years ago
parent
commit
ebcfe3bf1d
1 changed files with 6 additions and 6 deletions
  1. 6 6
      GameClient/Assets/Game/HotUpdate/Controller/LogController.cs

+ 6 - 6
GameClient/Assets/Game/HotUpdate/Controller/LogController.cs

@@ -22,10 +22,10 @@ namespace GFGGame
             msgDic.Add(_all, new List<string>());
             msgDic.Add(_error, new List<string>());
             msgDic.Add(_log, new List<string>());
-            // if (LauncherConfig.onDebug == 1)
-            // {
-            this.CreatBtnLog();
-            // }
+            if (LauncherConfig.onDebug >= 0)
+            {
+                this.CreatBtnLog();
+            }
 
             this.AddMsgListener();
         }
@@ -69,13 +69,13 @@ namespace GFGGame
                         _btnLog.m_c1.selectedIndex = 1;
                         _btnLog.target.alpha = 1;
                     }
-                    if (LauncherConfig.onDebug >= 1)
+                    if (LauncherConfig.onDebug >= 0)
                     {
                         ViewManager.Show(ViewName.LOG_VIEW);
                     }
                     break;
                 default:
-                    if (LauncherConfig.onDebug >= 2)
+                    if (LauncherConfig.onDebug >= 0)
                     {
                         if (msgDic[_all].Count == _maxCount)
                         {