From e755e7fbaaa21c76ac64b61550e4b4c04f020b29 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 20 十月 2022 15:49:22 +0800
Subject: [PATCH] 9415 【BT】【后端】古神战场(屏蔽NPC击杀积分王广播)
---
ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py
index 4c7628f..0454831 100644
--- a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py
+++ b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_GetPlayerInfo.py
@@ -101,6 +101,21 @@
# 回复gm
return GMCommon.Def_NoTag, ''
+ moneyMinusDict = {}
+ collection = userdb[UCN_RoleNomalDict]
+ docs = collection.find({'PlayerID':dbPlayer.PlayerID})
+ if docs.count():
+ obj = DataServerPlayerData.tagRoleNomalDict()
+ doc = list(docs)[0]
+ #有数据
+ if doc.has_key('__PackSave'):
+ for i in xrange(doc['Count']):
+ obj.readRecord(doc['%s'%(i+1)])
+ if obj.DictName.startswith("MoneyMinus_") and obj.DictValue > 0:
+ moneyMinusDict[int(obj.DictName[len("MoneyMinus_"):])] = -obj.DictValue # 货币负值
+ if 1 in moneyMinusDict and 2 in moneyMinusDict:
+ break
+
playerInfo = {
'AccID':dbPlayer.AccID, # 账号
'AccState':dbPlayer.AccState, # 账号状态
@@ -115,8 +130,8 @@
'VIPLV':dbPlayer.VIPLv, # vip等级
'MapID':dbPlayer.MapID, #当前地图id
- 'Gold':dbPlayer.Gold, # 元宝
- 'GoldPaper':dbPlayer.GoldPaper, # 绑钻
+ 'Gold':moneyMinusDict[1] if 1 in moneyMinusDict else dbPlayer.Gold, # 元宝
+ 'GoldPaper':moneyMinusDict[2] if 2 in moneyMinusDict else dbPlayer.GoldPaper, # 绑钻
'Silver':dbPlayer.Silver, # 银两
'FamilyName':dbPlayer.FamilyName, # 家族名称
--
Gitblit v1.8.0