From 7473f41b83c2921add6c7e41ff2459bb9260a8d7 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期六, 27 四月 2019 17:18:59 +0800 Subject: [PATCH] 6628 【2.0】【后端】查看玩家装备和查看玩家战力功能(定期删除过期查看玩家缓存,暂定30天未登录更新数据且不在榜上的删除) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py | 10 +++++++--- 1 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py index 45929c5..4d30f4b 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerBourseTube.py @@ -65,7 +65,12 @@ if clientData.PriceCount <= 0: GameWorld.DebugLog("Bourse### PlayerSellBourseItem PriceCount <= 0"%itemIndex) return - + if clientData.Count > curItem.GetCount(): + GameWorld.Log(' Bourse### 客户端发的物品数量大于实际数量!!') + sellCount = min(clientData.Count, curItem.GetCount()) + if sellCount <= 0: + return + password = clientData.Pwd #判断vip权限 if password and not PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_BoursePwd): @@ -76,7 +81,7 @@ sendPack = ChMapToGamePyPack.tagMGCheckAddPlayerBourseItem() sendPack.PlayerID = curPlayer.GetPlayerID() sendPack.ItemIndex = itemIndex - sendPack.Count = clientData.Count + sendPack.Count = sellCount sendPack.PriceType = clientData.PriceType sendPack.PriceCount = clientData.PriceCount sendPack.Pwd = password @@ -210,7 +215,6 @@ ItemControler.SetItemCount(curCreateItem, curPackData.Count) if curCreateItem.GetPackCount() == 1: - ItemControler.SetItemIsBind(curCreateItem, False) ItemCommon.SetEquipGearScore(curCreateItem, curPackData.EquipGS) curCreateItem.SetUserData(curPackData.UserData, curPackData.UserDataLen) -- Gitblit v1.8.0