瀏覽代碼

错误日志

guodong 3 年之前
父節點
當前提交
6ed5daa4d1

+ 1 - 1
GameClient/Assets/Game/HotUpdate/Controller/ErrorCodeController.cs

@@ -64,7 +64,7 @@ namespace GFGGame
                     if (ErrorCodeCfgArray.Instance.GetCfg(errorCode) != null)
                     {
                         PromptController.Instance.ShowFloatTextPrompt(ErrorCodeCfgArray.Instance.GetCfg(errorCode).tips);
-                        ET.Log.Error("errorCode" + errorCode.ToString());
+                        ET.Log.Debug("errorCode" + errorCode.ToString());
                         return true;
                     }
                     else

+ 5 - 2
GameClient/Assets/Game/HotUpdate/Controller/LogController.cs

@@ -67,8 +67,11 @@ namespace GFGGame
                     msgDic[_all].Add(msg);
                     msgDic[_error].Add(msg);
 
-                    _btnLog.m_c1.selectedIndex = 1;
-                    _btnLog.target.alpha = 1;
+                    if(_btnLog != null)
+                    {
+                        _btnLog.m_c1.selectedIndex = 1;
+                        _btnLog.target.alpha = 1;
+                    }
                     if (LauncherConfig.netType == EnumNetType.LOCAL)
                     {
                         this.SetBtnLogVisable(true);