线上问题 bug 规避修改位置
parent
faa065f7b1
commit
01d537118b
|
|
@ -27,18 +27,12 @@ function this.UpdateBagData(_itemData, isNoSendNewItemEvent)
|
||||||
isNoSendNewItemEvent = isNoSendNewItemEvent or false
|
isNoSendNewItemEvent = isNoSendNewItemEvent or false
|
||||||
local itemdata = {}
|
local itemdata = {}
|
||||||
--Log("_itemData.itemId -=-=-=-=-=-=-=-=-=-=-=-=-=-=- ".._itemData.itemId.." ".._itemData.itemNum)
|
--Log("_itemData.itemId -=-=-=-=-=-=-=-=-=-=-=-=-=-=- ".._itemData.itemId.." ".._itemData.itemNum)
|
||||||
-- 宝器数据不能通过背包,这里判断如果是宝器则舍弃这个数据,
|
|
||||||
if _itemCfgData.ItemType == ItemType.EquipTreasure then
|
|
||||||
return
|
|
||||||
end
|
|
||||||
--
|
|
||||||
local _itemCfgData = itemConfig[_itemData.itemId]
|
local _itemCfgData = itemConfig[_itemData.itemId]
|
||||||
if _itemCfgData ~= nil then
|
if _itemCfgData ~= nil then
|
||||||
-- 宝器数据不能通过背包,这里判断如果是宝器则舍弃这个数据,
|
-- 宝器数据不能通过背包,这里判断如果是宝器则舍弃这个数据,
|
||||||
if _itemCfgData.ItemType == ItemType.EquipTreasure then
|
if _itemCfgData.ItemType == ItemType.EquipTreasure then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
--
|
|
||||||
itemdata.itembackData = _itemData
|
itemdata.itembackData = _itemData
|
||||||
itemdata.itemConfig = _itemCfgData
|
itemdata.itemConfig = _itemCfgData
|
||||||
itemdata.id = _itemCfgData.Id
|
itemdata.id = _itemCfgData.Id
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue