parent
ff3e67d146
commit
6ef0d459f4
|
@ -77,7 +77,7 @@ function this:OnShow(_parent, _args)
|
|||
|
||||
parent = _parent
|
||||
sortingOrder = _parent.sortingOrder
|
||||
local default = 1
|
||||
local default = 2
|
||||
if currHeroId and currHeroId ~= 0 then
|
||||
for index, value in ipairs(heros) do
|
||||
if value[1] == currHeroId then
|
||||
|
@ -102,13 +102,12 @@ function this:Refresh(_page)
|
|||
if not heroDatas[heros[i][2]] then
|
||||
heroDatas[heros[i][2]] = {}
|
||||
end
|
||||
|
||||
--LogError("groupid=="..CONFIG[heros[i][1]].RewardGroup[1])
|
||||
LogError("groupid=="..CONFIG[heros[i][1]].RewardGroup[1].." "..heros[i][1].." "..heros[i][2])
|
||||
local group = ConfigManager.TryGetConfigData(ConfigName.RewardGroup, CONFIG[heros[i][1]].RewardGroup[1])
|
||||
local heroId = 0
|
||||
if group and group.ShowItem then
|
||||
-- LogError("group.ShowItem[1]=="..group.ShowItem[1])
|
||||
-- LogError("group.ShowItem[1][1]=="..group.ShowItem[1][1])
|
||||
--LogError("group.ShowItem[1]=="..group.ShowItem[1])
|
||||
--LogError("group.ShowItem[1][1]=="..group.ShowItem[1][1])
|
||||
heroId = group.ShowItem[1][1]
|
||||
end
|
||||
--如果没有3 说明是升星活动进来的这个界面
|
||||
|
@ -120,6 +119,7 @@ function this:Refresh(_page)
|
|||
end
|
||||
else
|
||||
if heros[i][2] == 6 or HeroManager.InVersion(heros[i][1]) then
|
||||
LogError("---------------------groupid=="..CONFIG[heros[i][1]].RewardGroup[1].." "..heros[i][1].." "..heros[i][2])
|
||||
table.insert(heroDatas[heros[i][2]], { CONFIG[heros[i][1]], heros[i][2], heros[i][3], heros[i][1] })
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue