【礼包】去掉LevelLinit 字段判断

dev_chengFeng
zhangqiang 2021-04-26 20:27:29 +08:00
parent ca9594fefc
commit 460ec366cb
2 changed files with 4 additions and 3 deletions

View File

@ -489,9 +489,9 @@ function this.GetGiftDataByType(ShopData)
if ShopData[i][1] == DataType.Direct and RECHARGEABLE then if ShopData[i][1] == DataType.Direct and RECHARGEABLE then
local topspeedData = this.ResetShopData(OperatingManager.GetGiftGoodsInfoList(ShopData[i][2]), ShopData[i][3], ShopData[i][1]) local topspeedData = this.ResetShopData(OperatingManager.GetGiftGoodsInfoList(ShopData[i][2]), ShopData[i][3], ShopData[i][1])
for i = 1, #topspeedData do for i = 1, #topspeedData do
if lv >= topspeedData[i].data.shopItemData.LevelLinit[1] and lv <= topspeedData[i].data.shopItemData.LevelLinit[2] then -- if lv >= topspeedData[i].data.shopItemData.LevelLinit[1] and lv <= topspeedData[i].data.shopItemData.LevelLinit[2] then
table.insert(shopData,topspeedData[i]) table.insert(shopData,topspeedData[i])
end -- end
end end
elseif ShopData[i][1] == DataType.Shop then elseif ShopData[i][1] == DataType.Shop then
local topspeedData = this.ResetShopData(ShopManager.GetShopDataByType(ShopData[i][2]).storeItem, ShopData[i][2], ShopData[i][1]) local topspeedData = this.ResetShopData(ShopManager.GetShopDataByType(ShopData[i][2]).storeItem, ShopData[i][2], ShopData[i][1])

View File

@ -141,7 +141,8 @@ function this.GetGiftGoodsInfoList(type)
end end
local newGiftGoodsInfoList = {} local newGiftGoodsInfoList = {}
for k,v in pairs(giftGoodsInfoList[type]) do for k,v in pairs(giftGoodsInfoList[type]) do
if rechargeConfig[v.goodsId] and PlayerManager.level >= rechargeConfig[v.goodsId].LevelLinit[1] and PlayerManager.level <= rechargeConfig[v.goodsId].LevelLinit[2] then --and PlayerManager.level >= rechargeConfig[v.goodsId].LevelLinit[1] and PlayerManager.level <= rechargeConfig[v.goodsId].LevelLinit[2]
if rechargeConfig[v.goodsId] then
table.insert(newGiftGoodsInfoList,v) table.insert(newGiftGoodsInfoList,v)
end end
end end