From 746dec7b2deec0d87a90153997a47d797f6d9b81 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 26 六月 2025 22:07:23 +0800
Subject: [PATCH] 0312 主界面功能 增加真机debug模块:1.输出日志  2.支持非SDK登录 3.GM命令 4.分支下载

---
 Main/System/Debug/DebugController.cs |   70 ++++------------------------------
 1 files changed, 9 insertions(+), 61 deletions(-)

diff --git a/Main/System/Debug/DebugController.cs b/Main/System/Debug/DebugController.cs
index fb8ae73..826e178 100644
--- a/Main/System/Debug/DebugController.cs
+++ b/Main/System/Debug/DebugController.cs
@@ -10,74 +10,29 @@
 public class DebugController : MonoBehaviour
 {
 
-    // [SerializeField] FPS m_Fps;
-    // [SerializeField] Toggle m_ToggleFPS;
+    [SerializeField] FPS m_Fps;
 
-    // [SerializeField] DebugVersionShow m_DebugVersion;
-    // [SerializeField] Toggle m_ToggleVersion;
+    [SerializeField] Text m_Version;
 
     private void OnEnable()
     {
-        // if (m_Fps != null)
-        // {
-        //     m_Fps.SetActive(m_ToggleFPS.isOn);
-        // }
-
-        // m_ToggleFPS.RemoveAllListeners();
-        // m_ToggleFPS.AddListener(ToggleFPS);
-
-        // if (m_DebugVersion != null)
-        // {
-        //     m_DebugVersion.SetActive(m_ToggleVersion.isOn);
-        // }
-
-        // m_ToggleVersion.RemoveAllListeners();
-        // m_ToggleVersion.AddListener(ToggleVersion);
+        m_Version.text = string.Format("{0}_{1} 鍒嗘敮:{2}",
+                VersionConfig.Get().version, VersionConfig.Get().buildIndex, VersionConfig.Get().branch);
     }
 
-    void ToggleFPS(bool _value)
-    {
-        // if (m_Fps != null)
-        // {
-        //     m_Fps.SetActive(_value);
-        // }
-    }
-
-    void ToggleVersion(bool _value)
-    {
-        // if (m_DebugVersion != null)
-        // {
-        //     m_DebugVersion.SetActive(_value);
-        // }
-    }
 
     public void OpenGM()
     {
-        // if (!WindowCenter.Instance.IsOpen<GMInputWin>())
-        // {
-        //     WindowCenter.Instance.Open<GMInputWin>();
-        // }
+        if (!UIManager.Instance.IsOpened<GMInputWin>())
+        {
+            UIManager.Instance.OpenWindow<GMInputWin>();
+        }
     }
 
     public void OpenGMCommond()
     {
-        // WindowCenter.Instance.Open<GMCmdPanel>();
+        UIManager.Instance.OpenWindow<GMCmdPanel>();
     }
-
-    // //public void SendSpecialCTG()
-    // //{
-    // //    var model = ModelCenter.Instance.GetModel<VipModel>();
-    // //    var list = model.GetCTGConfigs(VersionConfig.Get().appId);
-    // //    for (int i = 0; i < list.Count; i++)
-    // //    {
-    // //        var config = CTGConfig.Get(list[i]);
-    // //        if (config.PayType == 4)
-    // //        {
-    // //            model.CTG(config.RecordID);
-    // //            return;
-    // //        }
-    // //    }
-    // //}
 
     public void CleanNewBranchSet()
     {
@@ -85,13 +40,6 @@
         ScrollTip.ShowTip("娓呯悊鍒嗘敮璁剧疆");
     }
 
-    public void PrintLastCrashLog()
-    {
-        // if (CrashReport.lastReport != null)
-        // {
-        //     Debug.LogFormat("宕╂簝鏃ュ織:{0}", CrashReport.lastReport);
-        // }
-    }
 
 }
 

--
Gitblit v1.8.0