From 8bc09882112715eab106e4c11cbdffef77eec31d Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 22 一月 2019 19:41:07 +0800
Subject: [PATCH] 5993 【1.5.100】七日巡礼活动相关流向记录
---
ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py | 32 ++++++--------------------------
1 files changed, 6 insertions(+), 26 deletions(-)
diff --git a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py
index e29c429..4e688d3 100644
--- a/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py
+++ b/ServerPython/db/PyMongoDataServer/GMToolLogicProcess/Commands/GMT_PlayerItemInfo.py
@@ -89,6 +89,10 @@
# queryType为accID,发送的信息就是玩家的AccID
playerAccID = playerFind
+ # 返回playerid,判断是否在线
+ if data == '%s'%GMCommon.Def_GMKey_PlayerName:
+ return GMCommon.Def_DoQueryLogDB, playerAccID
+
collection = userdb[UCN_DBPlayer]
dbPlayer = DataServerPlayerData.tagDBPlayer()
dbPlayer.IsDeleted = 0
@@ -142,13 +146,8 @@
# @param itemDict: 物品信息字典
# @return curItemInfo:当前物品显示信息
def _GetItemInfo(itemDict):
-
- stoneList = []
- hourCnt = itemDict['CanPlaceStoneCount']
- for hourIndex in range(1, hourCnt + 1):
- stoneList.append(itemDict['Stone%d'%hourIndex])
- itemData = eval(itemDict['UserData'])
+ #itemData = eval(itemDict['UserData'])
curItemInfo = {
'PackType':itemDict['ItemPlaceType'], # 背包类型
'ItemIndex':itemDict['ItemPlaceIndex'], # 索引
@@ -156,27 +155,8 @@
'IsBand':itemDict['IsBind'], # 是否绑定
'ItemCnt':itemDict['Count'], # 数量
'ItemID':itemDict['ItemTypeID'],
-
- 'StarLV':itemDict['ItemStarLV'], # 星级
- 'Endure':itemDict['CurDurg'], # 当前耐久
- 'MaxEndure':itemDict['MaxDurg'], # 最大耐久
+
'IsSuite':itemDict['IsSuite'], # 是否套装
- 'HoleCnt':hourCnt, # 孔数
- 'StoneList':stoneList, # 宝石id列表
-
- 'SkillCnt':itemData.get(IudetEquipAddSkillCnt, 0), #灵纹数
- 'MaxSkillCnt':itemDict['MaxAddSkillCnt'], # 最大灵纹数
- 'SkillList':itemData.get(IudetEquipAddSkillList, []), # 技能id列表
-
- 'FitLV':itemDict['FitLV'], # 契合等级
- 'Proficiency':itemDict['Proficiency'], # 熟练度
-
- 'MinAtk':itemDict['EquipMinAtkValue'], # 最小伤害值
- 'MaxAtk':itemDict['EquipMaxAtkValue'], # 最大伤害值
- 'Defense':itemDict['BaseMagicDef'], # 防御值
- 'BaseHP':itemDict['BaseHP'], # 气血值
- 'MagicDef':itemDict['EquipMagicDefValue'], # 内防值
- 'isWakeUp':itemData.get(IudetWakeUpCnt, 0), # 是否唤醒
}
return curItemInfo
\ No newline at end of file
--
Gitblit v1.8.0