[升星有礼]=======修改提交

dev_chengFeng
wangzhenxing 2022-07-19 17:26:30 +08:00
parent e05cdfc388
commit cfa92014de
1 changed files with 4 additions and 4 deletions

View File

@ -242,7 +242,9 @@ function UpStarGift:GetHeroList()
local heroList = {}
-- 显示列表
for k, v in ipairs(self.ActData.rewards) do
heroList[v.targetId] = 1
if v.targetId then
heroList[v.targetId] = 1
end
end
local heros = {}
for heroId, _ in pairs(heroList) do
@ -281,12 +283,10 @@ end
-- 获取奖励列表
function UpStarGift:GetRewardDataList()
local choose = self:GetCurChooseHero()
-- 没有的话就选第一个人作为默认显示的奖励
if choose == 0 then
choose = self.ActData.rewards[1].targetId
choose = self.ActData.rewards[7].targetId
end
-- 显示列表
local dataList = {}
for k, v in ipairs(self.ActData.rewards) do