From f27986d2eb32e3d2598d15b91c88479797ce5c72 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期三, 13 三月 2019 17:48:37 +0800 Subject: [PATCH] 6328 【后端】优化代码eval - 二进制流 不能直接输出 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py index 4e91a7f..90b7fcd 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/FBCommon.py @@ -601,7 +601,7 @@ continue itemDict['ItemID'] = itemInfo.GetItemTypeID() itemDict['Count'] = itemInfo.GetCount() - itemDict['IsAuctionItem'] = 0 if itemInfo.GetIsBind() else 1 + itemDict['IsAuctionItem'] = itemInfo.GetIsBind() #itemDict['IsSuite'] = int(itemInfo.GetIsSuite()) itemDict['UserData'] = itemInfo.GetUserData() jsonItemList.append(itemDict) @@ -1962,7 +1962,7 @@ return buffType = SkillCommon.GetBuffType(skillBuff) - BuffSkill.DoAddBuff(curPlayer, buffType, skillBuff, tick) + gameFB.SetPlayerGameFBDict(ownerID, key, encourageLV+1) gameFB.SetPlayerGameFBDict(ownerID, encourageCntKey, encourageCnt+1) #GameWorld.Log("FbEncourageBuff encourage nextLV=%s success" % encourageLV) @@ -1976,6 +1976,7 @@ continue if player.GetFamilyID() != ownerID: continue + BuffSkill.DoAddBuff(player, buffType, skillBuff, tick) PlayerControl.NotifyCode(player, "AllianceBossText2", [curPlayer.GetName(), encourageLV+1]) SendFBEncourageInfo(player, encourageLV+1, ownerID) if player.GetID() == curPlayer.GetID(): @@ -1983,6 +1984,7 @@ EventShell.EventRespons_FBEncourage(curPlayer, curMapID) else: + BuffSkill.DoAddBuff(curPlayer, buffType, skillBuff, tick) PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_628920", [(encourageLV+1)*addHurtNum]) SendFBEncourageInfo(curPlayer, encourageLV+1, ownerID) #成就 -- Gitblit v1.8.0