From 09b880f5f1728c443b77a1fe83a6b9c34b8e7ede Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 02 二月 2021 16:51:13 +0800
Subject: [PATCH] 4925 【主干】【BT】【BT2】【BTZF】红包雨65535报错

---
 ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py |   19 +++++++++++++++++++
 1 files changed, 19 insertions(+), 0 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py
index d9ead76..7050296 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/GM/Commands/Assist.py
@@ -31,6 +31,7 @@
 #  @remarks 函数详细说明.
 def OnExec(curPlayer, gmList):
     
+    isShowThanks = gmList[0] if len(gmList) > 0 else 0
     assistMgr = PyDataManager.GetPlayerAssistPyManager()
     GameWorld.Log("---------- 当前总协助条数: %s" % len(assistMgr.allAssistDict))
     for assist in assistMgr.allAssistDict.values():
@@ -55,5 +56,23 @@
         GameWorld.DebugLog("玩家协助中的: %s, %s" % (playerID, assist.GUID))
         
     GameWorld.DebugLog("-----------------------------------------")
+    if not isShowThanks:
+        return
+    
+    assistThanksMgr = PyDataManager.GetPlayerAssistThanksPyManager()
+    GameWorld.Log("---------- 未完结总感谢条数: %s" % len(assistThanksMgr.allAssistThanksList))
+    for playerID, thanksList in assistThanksMgr.playerThanksDict.items():
+        GameWorld.DebugLog("--- 玩家未发送感谢数: %s, %s" % (playerID, len(thanksList)))
+        for i, thanks in enumerate(thanksList):
+            GameWorld.DebugLog("    %s itemID=%s,map(%s,%s,%s), %s %s" % (i, thanks.ItemID, thanks.MapID, thanks.LineID, thanks.NPCID, thanks.TimeStr, thanks.GUID), thanks.PlayerID)
+            GameWorld.DebugLog("        ThanksState=%s, %s" % (thanks.ThanksState, thanks.AssistPlayerDict), thanks.PlayerID)
+            
+    for playerID, thanksList in assistThanksMgr.assistPlayerThanksDict.items():
+        GameWorld.DebugLog("--- 玩家未接收感谢数: %s, %s" % (playerID, len(thanksList)))
+        for i, thanks in enumerate(thanksList):
+            GameWorld.DebugLog("    %s itemID=%s,map(%s,%s,%s), %s %s" % (i, thanks.ItemID, thanks.MapID, thanks.LineID, thanks.NPCID, thanks.TimeStr, thanks.GUID), thanks.PlayerID)
+            GameWorld.DebugLog("        ThanksState=%s, %s" % (thanks.ThanksState, thanks.AssistPlayerDict), thanks.PlayerID)
+                    
+    GameWorld.DebugLog("-----------------------------------------")
     return
 

--
Gitblit v1.8.0