From 8c3d4da0efd8345892ac9822297b93644e03be3a Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期四, 07 三月 2019 18:56:24 +0800 Subject: [PATCH] 6332 【后端】【2.0】主要是拍品相关规则调整及背包优化(拍品堆叠逻辑修改) --- ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py index bffd6cb..525da05 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerViewCache.py @@ -85,7 +85,7 @@ # 同步更新助战信息 if PlayerFBHelpBattle.IsInHelpBattleCheckInList(PlayerID): - PropDataDict = eval(PropData) + PropDataDict = json.loads(PropData) fightPower = PropDataDict.get("FightPower", 0) familyID = PropDataDict.get("FamilyID", 0) playerName = PropDataDict.get("Name", "") @@ -236,7 +236,7 @@ return playerEquipList = [] - equipItemList = eval(itemData) + equipItemList = json.loads(itemData) for equipItemDict in equipItemList: equipIndex = equipItemDict["ItemIndex"] if equipIndex not in ShareDefine.RoleEquipType: @@ -276,7 +276,7 @@ answerPack.OnlineType = ChConfig.Def_Offline answerPack.ServerGroupID = 0 else: - cacheDict = eval(curCache.GetPropData()) + cacheDict = json.loads(curCache.GetPropData()) answerPack.PlayerID = clientPack.PlayerID answerPack.PlayerName = cacheDict["Name"] @@ -305,7 +305,7 @@ curCache = ViewCacheMgr.FindCache(playerID) if not curCache: return - PropData = eval(curCache.GetPropData()) + PropData = json.loads(curCache.GetPropData()) PropData["FamilyID"] = familyID PropData["FamilyName"] = familyName playerLV = PropData["LV"] -- Gitblit v1.8.0