From 0f1e31c6f1005bf2cf1078db31c866597f0b3f95 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 18 五月 2026 14:46:54 +0800
Subject: [PATCH] 0312 还原日志调试
---
Main/Manager/StageManager.cs | 22 +++++++++++-----------
Main/System/BoneField/AdsManager.cs | 5 +----
2 files changed, 12 insertions(+), 15 deletions(-)
diff --git a/Main/Manager/StageManager.cs b/Main/Manager/StageManager.cs
index c554189..1665f55 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 70bb923..be61e85 100644
--- a/Main/System/BoneField/AdsManager.cs
+++ b/Main/System/BoneField/AdsManager.cs
@@ -103,7 +103,6 @@
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))
@@ -112,7 +111,6 @@
//濂栧姳闇�瑕佽缃爣璇嗗搴斿彂鏀�
if (WaitForLoadNewAd())
{
- Debug.Log("ads:绛夊緟骞垮憡");
SysNotifyMgr.Instance.ShowTip("AdLoadFail");
return;
}
@@ -123,13 +121,12 @@
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