From 67f11d7f228d445166969d16992fc81d725dddce Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 18 五月 2026 14:39:45 +0800
Subject: [PATCH] 0312 启动日志 测试硬核无广告渠道不能跳过广告问题

---
 Main/Manager/StageManager.cs        |   22 +++++++++++-----------
 Main/System/BoneField/AdsManager.cs |    5 ++++-
 2 files changed, 15 insertions(+), 12 deletions(-)

diff --git a/Main/Manager/StageManager.cs b/Main/Manager/StageManager.cs
index 1665f55..c554189 100644
--- a/Main/Manager/StageManager.cs
+++ b/Main/Manager/StageManager.cs
@@ -132,18 +132,18 @@
         UIManager.Instance.OpenWindow<MainWin>();
 
         //娓告垙鍐呮棩蹇楀叧闂�
-#if !UNITY_EDITOR
-        if (File.Exists(Directory.GetParent(Application.persistentDataPath) + "/Debug") ||
-        LocalSave.GetString("#@#BrancH") != string.Empty)
-        {
-            Debug.unityLogger.logEnabled = true;
-        }
-        else
-        { 
-            Debug.unityLogger.logEnabled = false;
-        }
+// #if !UNITY_EDITOR
+//         if (File.Exists(Directory.GetParent(Application.persistentDataPath) + "/Debug") ||
+//         LocalSave.GetString("#@#BrancH") != string.Empty)
+//         {
+//             Debug.unityLogger.logEnabled = true;
+//         }
+//         else
+//         { 
+//             Debug.unityLogger.logEnabled = false;
+//         }
 
-#endif
+// #endif
     }
 
     protected async UniTask OnLoading(AsyncOperation asyncOperation, Func<float> getLoadingProgress, Func<UniTask> anthorTask = null)
diff --git a/Main/System/BoneField/AdsManager.cs b/Main/System/BoneField/AdsManager.cs
index be61e85..70bb923 100644
--- a/Main/System/BoneField/AdsManager.cs
+++ b/Main/System/BoneField/AdsManager.cs
@@ -103,6 +103,7 @@
         if (!InvestModel.Instance.IsInvested(InvestModel.monthCardType) &&
         !InvestModel.Instance.IsInvested(InvestModel.foreverCardType))
         {
+            Debug.LogFormat("ads:SDKUtils.channelSign = |{0}|", SDKUtils.channelSign);
             //鏈夊箍鍛婄殑SDK
             if (VersionConfig.Get().appId == "ryzj" && !string.IsNullOrEmpty(SDKUtils.channelSign) &&
                 !GeneralDefine.noAdsChannels.Contains(SDKUtils.channelSign))
@@ -111,6 +112,7 @@
                 //濂栧姳闇�瑕佽缃爣璇嗗搴斿彂鏀�
                 if (WaitForLoadNewAd())
                 {
+                    Debug.Log("ads:绛夊緟骞垮憡");
                     SysNotifyMgr.Instance.ShowTip("AdLoadFail");
                     return;
                 }
@@ -121,12 +123,13 @@
                 var aDAwardConfig = ADAwardConfig.Get(waitAdID);
                 waitRemainAdsCount = aDAwardConfig.ADCntMax - adsCnt;
 
-
+                Debug.Log("ads:鎾斁骞垮憡");
                 SDKUtils.Instance.PlayAds("b69a2b68bb3d22");
                 return;
             }
         }
 
+        Debug.LogFormat("ads:鐩存帴棰嗗彇骞垮憡 {0}", ADID);
         //娌″箍鍛婄殑SDK 鐩存帴缁欏鍔�
         GetAdsAward(ADID);
     }

--
Gitblit v1.8.0