zhangjiannan 2025-04-18 21:26:06 +08:00
parent ff3e67d146
commit 6ef0d459f4
1 changed files with 5 additions and 5 deletions

View File

@ -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,8 +102,7 @@ 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
@ -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