From 451528f3927eefd5a08dd98168feaf85a3b284a9 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 05 一月 2026 16:06:31 +0800
Subject: [PATCH] 0312 增加渠道独立配置

---
 Main/System/PlayerProfile/PlayerProfileWin.cs |   10 ++++++----
 Main/System/Login/LoginWin.cs                 |   26 ++++----------------------
 Main/System/ClientVersion/RequestSecretWin.cs |   12 +++++++-----
 3 files changed, 17 insertions(+), 31 deletions(-)

diff --git a/Main/System/ClientVersion/RequestSecretWin.cs b/Main/System/ClientVersion/RequestSecretWin.cs
index b20414e..51eb80d 100644
--- a/Main/System/ClientVersion/RequestSecretWin.cs
+++ b/Main/System/ClientVersion/RequestSecretWin.cs
@@ -5,6 +5,7 @@
 using DG.Tweening;
 using Cysharp.Threading.Tasks;
 
+//鐩墠娌$敤锛岀敤鐨勬槸SDK鐨�
 public class RequestSecretWin : UIBase
 {
     // 缁勪欢寮曠敤
@@ -19,7 +20,8 @@
         base.InitComponent();
         // 鍒濆鍖栫粍浠跺紩鐢�
         m_Confirm.SetListener(Confirm);
-        m_Cannel.SetListener(() => {
+        m_Cannel.SetListener(() =>
+        {
             Debug.LogError("Cannel");
             CloseWindow();
 #if UNITY_EDITOR
@@ -28,15 +30,15 @@
             Application.Quit();
 #endif
         });
-        m_Fuwu.SetListener(()=> {
+        m_Fuwu.SetListener(() =>
+        {
             // GameAgeWarnWin.data = 1;
             // UIManager.Instance.OpenWindow<GameAgeWarnWin>();
-            SDKUtils.Instance.OpenUrl("https://res.xingwan001.com/storage/d1rhn239ao69cjnvqa9g");
         });
-        m_Yinsi.SetListener(() => {
+        m_Yinsi.SetListener(() =>
+        {
             // GameAgeWarnWin.data = 2;
             // UIManager.Instance.OpenWindow<GameAgeWarnWin>();
-            SDKUtils.Instance.OpenUrl("https://res.xingwan001.com/storage/d1rhhuj9ao69cjnvqa90");
         });
     }
 
diff --git a/Main/System/Login/LoginWin.cs b/Main/System/Login/LoginWin.cs
index 8eaf8e0..301ef5c 100644
--- a/Main/System/Login/LoginWin.cs
+++ b/Main/System/Login/LoginWin.cs
@@ -38,9 +38,8 @@
     [SerializeField] Button ageWarn;
     [SerializeField] Text verInfo;
 
-    // [SerializeField] Text m_Banhao;
+    [SerializeField] Text m_Banhao;
 
-    string banhaoStr = "";
     protected override void InitComponent()
     {
         base.InitComponent();
@@ -66,14 +65,14 @@
         {
             // GameAgeWarnWin.data = 1;
             // UIManager.Instance.OpenWindow<GameAgeWarnWin>();
-            SDKUtils.Instance.OpenUrl("https://res.xingwan001.com/storage/d1rhn239ao69cjnvqa9g");
+            SDKUtils.Instance.OpenUrl(OPConfigConfig.Get("yhxy").content);
         });
 
         hideRead.SetListener(() =>
         {
             // GameAgeWarnWin.data = 2;
             // UIManager.Instance.OpenWindow<GameAgeWarnWin>();
-            SDKUtils.Instance.OpenUrl("https://res.xingwan001.com/storage/d1rhhuj9ao69cjnvqa90");
+            SDKUtils.Instance.OpenUrl(OPConfigConfig.Get("yszc").content);
         });
         ageWarn.SetListener(() =>
         {
@@ -84,7 +83,6 @@
         {
             LocalSave.SetBool("secretToggleStart5", value);
         });
-        // banhaoStr = LoadConfig();
     }
 
     protected override void OnPreOpen()
@@ -115,7 +113,7 @@
         {
             SDKUtils.Instance.FreePlatformLogin();
         }
-        // m_Banhao.text = banhaoStr;
+        m_Banhao.text = OPConfigConfig.Get("banhao").content;
     }
 
     protected override void OnOpenAnimationComplete()
@@ -411,20 +409,4 @@
     }
     
 
-    public string LoadConfig()
-    {
-        string path = string.Empty;
-#if UNITY_EDITOR
-        if (!AssetSource.isUseAssetBundle)
-        {
-            path = ResourcesPath.CONFIG_FODLER + "/banhao.txt";
-        }
-        else
-#endif
-        {
-            path = AssetVersionUtility.GetAssetFilePath($"config/banhao.txt");
-        }
-
-        return File.ReadAllText(path);
-    }
 }
diff --git a/Main/System/PlayerProfile/PlayerProfileWin.cs b/Main/System/PlayerProfile/PlayerProfileWin.cs
index 45aa211..26a640e 100644
--- a/Main/System/PlayerProfile/PlayerProfileWin.cs
+++ b/Main/System/PlayerProfile/PlayerProfileWin.cs
@@ -38,13 +38,15 @@
         btnChangeName.SetListener(() => { UIManager.Instance.OpenWindow<RenameWin>(); });
         btnText1.SetListener(() =>
         {
-            GameAgeWarnWin.data = 1;
-            UIManager.Instance.OpenWindow<GameAgeWarnWin>();
+            // GameAgeWarnWin.data = 1;
+            // UIManager.Instance.OpenWindow<GameAgeWarnWin>();
+            SDKUtils.Instance.OpenUrl(OPConfigConfig.Get("yhxy").content);
         });
         btnText2.SetListener(() =>
         {
-            GameAgeWarnWin.data = 2;
-            UIManager.Instance.OpenWindow<GameAgeWarnWin>();
+            // GameAgeWarnWin.data = 2;
+            // UIManager.Instance.OpenWindow<GameAgeWarnWin>();
+            SDKUtils.Instance.OpenUrl(OPConfigConfig.Get("yszc").content);
         });
         avatarCell.redpoint.redpointId = MainRedDot.PhantasmPavilionRepoint;
         avatarCell.SetListener(() =>

--
Gitblit v1.8.0