From 51e035c15a4012686a8c79ae07dddd1a00103fbb Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 19 六月 2024 14:14:41 +0800
Subject: [PATCH] 10182 【越南】【香港】【砍树】【主干】玩家数据扩展和排行榜扩展 - 创角接口

---
 ServerPython/db/PyMongoDataServer/GMToolLogicProcess/ProjSpecialProcess.py |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/ProjSpecialProcess.py b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/ProjSpecialProcess.py
index 2959052..3242327 100644
--- a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/ProjSpecialProcess.py
+++ b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/ProjSpecialProcess.py
@@ -97,7 +97,7 @@
     funcName = ''
     try:
         # 获得gm命令信息
-        gmCmdDict = json.loads(cmd)          
+        gmCmdDict = eval(cmd)          
         funcName = gmCmdDict.get(GMCommon.Def_GMKey_Type, '')  
 
         if funcName == None:                        
@@ -251,7 +251,7 @@
     # 个人补偿GM工具
     # 由于GameServer处理多个玩家补偿同一物品时只收一次命令包处理(只插入一条物品数据)
     # 故此处先查出多个玩家账号/昵称对应的playerID,更改命令字典信息后,压入包,再推给GameServer
-    if gmCmdManger.funcName == "GMT_AddPersonalCompensation":
+    if gmCmdManger.funcName in ["GMT_AddPersonalCompensation", "GMT_CompensationQueryPersonal"]:
         gmCmdDict = gmCmdManger.gmCmdDict
         playerList = gmCmdDict.get("playerList", '')
         playerList = playerList.split(",")
@@ -261,6 +261,10 @@
     
         playerIDList = []
         queryType = gmCmdDict.get(GMCommon.Def_GMKey_QueryType, '')
+        if queryType == GMCommon.Def_GMKey_FamilyID:
+            # 根据家族ID的不处理,直接推
+            return GMCommon.Def_SendToGameServer, ""
+        
         playerFind = gmCmdDict.get(GMCommon.Def_GMKey_PlayerFind, '')
         
         for playerFind in playerList:

--
Gitblit v1.8.0