From c3b7993a1d5071580f43219fcbb89f032eae0910 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 17 十一月 2025 18:36:02 +0800
Subject: [PATCH] 0312 战斗片段-主线小怪封包查看增加非战斗封包的二次推送显示;增加0418过旧封包输出排查问题

---
 Main/System/Battle/BattleManager.cs |   14 ++++++++------
 1 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/Main/System/Battle/BattleManager.cs b/Main/System/Battle/BattleManager.cs
index 64c81a5..13c35bb 100644
--- a/Main/System/Battle/BattleManager.cs
+++ b/Main/System/Battle/BattleManager.cs
@@ -147,6 +147,7 @@
         {
             if (!allow)
             {
+                _package.socketType = ServerType.MainFight;
                 packQueue.Enqueue(_package);
             }
         }
@@ -169,6 +170,7 @@
 
         List<GameNetPackBasic> newPackList = ParseBattlePackList(string.Empty, packQueueSnapshot);
 
+#if UNITY_EDITOR
         Action printNewPack = () =>
         {
             string temp = "After AnalysisPackQueueAndDistribute newPackList count: " + newPackList.Count + "\n";
@@ -191,7 +193,7 @@
         };
 
         printNewPack();
-
+#endif
         // HashSet<int> skipIndexes = new HashSet<int>();
 
         // // 杩欓噷宸茬粡鏄寜鐓equeue鐨勯『搴忎簡
@@ -277,11 +279,11 @@
     public static List<GameNetPackBasic> ParseBattlePackList(string guid, List<GameNetPackBasic> packQueueSnapshot)
     {
         var list = CustomHB426CombinePack.CombineToSkillPackFromList(guid, packQueueSnapshot);
-        string str = "ParseBattlePackList \n";
-        for (int i = 0; i < list.Count; i++)
-        {
-            str += "  " + list[i].GetType().Name + "\n";
-        }
+        // string str = "ParseBattlePackList \n";
+        // for (int i = 0; i < list.Count; i++)
+        // {
+        //     str += "  " + list[i].GetType().Name + "\n";
+        // }
         // BattleDebug.LogError(str);
         return list;
 

--
Gitblit v1.8.0