From 23b3fbb321e68c78fa4ceda608de44ea1a8fd585 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 13 三月 2019 17:25:16 +0800
Subject: [PATCH] 6328 【后端】优化代码eval - 二进制流 不能直接输出
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py | 11 ++++++-----
1 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
index af044ed..4e52c5d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChItem.py
@@ -1531,8 +1531,8 @@
return
# 使用拍品
- if not curItem.GetIsBind():
- __DoLogic_PlayerUseAuctionItem(curPlayer, curItem, itemIndex, exData)
+ if curItem.GetIsBind():
+ DoLogic_PlayerUseAuctionItem(curPlayer, curItem)
return
if useCnt <= 0:
@@ -1543,13 +1543,14 @@
return
-def __DoLogic_PlayerUseAuctionItem(curPlayer, curItem, itemIndex, exData):
+def DoLogic_PlayerUseAuctionItem(curPlayer, curItem):
## 玩家使用拍品
playerID = curPlayer.GetPlayerID()
itemID = curItem.GetItemTypeID()
- curItem.SetIsBind(1) # 设置为非拍品
- GameWorld.DebugLog("玩家使用拍品: itemIndex=%s,itemID=%s,exData=%s" % (itemID, itemIndex, exData), playerID)
+ curItem.SetIsBind(0) # 设置为非拍品
+ curItem.ClearUserAttr(ShareDefine.Def_IudetAuctionItemCreateTime)
+ GameWorld.DebugLog("玩家使用拍品: itemID=%s" % (itemID), playerID)
if ItemCommon.GetIsEquip(curItem):
# 生成传奇属性
--
Gitblit v1.8.0