【排行榜】膜拜转圈儿修复

dev_chengFeng
ZhangBiao 2021-09-27 17:46:40 +08:00
parent a4ee19a351
commit a8c9c836a9
2 changed files with 5 additions and 5 deletions

View File

@ -167,7 +167,7 @@ function this.HeroLvUpUpdateItemsNum(_itemId, deleteNum)
end end
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold) Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold)
else else
LogError("扣了不存在的item" .. _itemId .. " " .. deleteNum) LogError("扣了不存在的itemID:" .. _itemId .. " 数量" .. deleteNum)
end end
end end

View File

@ -43,10 +43,10 @@ end
function RankingListMainPanel:OnOpen(msg) function RankingListMainPanel:OnOpen(msg)
ranks = msg.ranks ranks = msg.ranks
curIndex = 1 curIndex = 1
LogYellow("#msg.ranks "..#msg.ranks.." "..#msg.proud) -- LogYellow("#msg.ranks "..#msg.ranks.." "..#msg.proud)
for i = 1, #msg.ranks do for i = 1, #msg.ranks do
LogYellow("msg.ranks "..msg.ranks[i].uid) -- LogYellow("msg.ranks "..msg.ranks[i].uid)
LogYellow("msg.proud "..msg.proud[i]) -- LogYellow("msg.proud "..msg.proud[i])
end end
end end
@ -88,7 +88,7 @@ function this.SwitchView(index)
local currankKingList = {} local currankKingList = {}
local _GoIndex = #rankKingListGo + 1 local _GoIndex = #rankKingListGo + 1
for i = 1, math.max(#rankKingListGo, #rankKingList) do for i = 1, math.max(#rankKingListGo, #rankKingList) do
if curIndex == rankKingList[i].isRankingMainPanelShow then if rankKingList[i] and curIndex == rankKingList[i].isRankingMainPanelShow then
local go = rankKingListGo[_GoIndex] local go = rankKingListGo[_GoIndex]
if not go then if not go then
go=newObject(this.ItemPre) go=newObject(this.ItemPre)