限时召唤修改提交

jiaoyangna 2020-11-04 00:15:26 +08:00
parent b93bef6237
commit 12967078f0
2 changed files with 6 additions and 4 deletions

View File

@ -78,7 +78,7 @@ local activityType = {
[4306] = {
bg = "Bg2",
hero = {
[1]={name="Bg2/hero2",id=10089,hero="s_yongwangzhiqian_shenjiang1"}, ----燃灯
[1]={name="Bg2/hero1",id=10089,hero="s_yongwangzhiqian_shenjiang1"}, ----燃灯
[2]={name="Bg2/hero3",id=10015,hero="s_yongwangzhiqian_shenjiang3"}, --伏虎罗汉
[3]={name="Bg2/hero2",id=10026,hero="s_yongwangzhiqian_shenjiang2"}, ----东华帝君
},

View File

@ -54,9 +54,11 @@ end
--判断商品是否可购买(成长礼)
function this.IsGrowthGiftGoodsAvailable(goodsType)
for _, v in ipairs(giftGoodsInfo)do
local rechargeConfig = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, v.goodsId)
if(rechargeConfig.Type == goodsType and v.dynamicBuyTimes == 1 and v.buyTimes ~= v.dynamicBuyTimes)then
return v
if v and v.goodsId and v.goodsId ~= 0 then
local rechargeConfig = ConfigManager.GetConfigData(ConfigName.RechargeCommodityConfig, v.goodsId)
if(rechargeConfig.Type == goodsType and v.dynamicBuyTimes == 1 and v.buyTimes ~= v.dynamicBuyTimes)then
return v
end
end
end
return nil