【排行榜】膜拜转圈儿修复
parent
a4ee19a351
commit
a8c9c836a9
|
@ -167,7 +167,7 @@ function this.HeroLvUpUpdateItemsNum(_itemId, deleteNum)
|
|||
end
|
||||
Game.GlobalEvent:DispatchEvent(GameEvent.Bag.BagGold)
|
||||
else
|
||||
LogError("扣了不存在的item" .. _itemId .. " " .. deleteNum)
|
||||
LogError("扣了不存在的itemID:" .. _itemId .. " 数量" .. deleteNum)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -43,10 +43,10 @@ end
|
|||
function RankingListMainPanel:OnOpen(msg)
|
||||
ranks = msg.ranks
|
||||
curIndex = 1
|
||||
LogYellow("#msg.ranks "..#msg.ranks.." "..#msg.proud)
|
||||
-- LogYellow("#msg.ranks "..#msg.ranks.." "..#msg.proud)
|
||||
for i = 1, #msg.ranks do
|
||||
LogYellow("msg.ranks "..msg.ranks[i].uid)
|
||||
LogYellow("msg.proud "..msg.proud[i])
|
||||
-- LogYellow("msg.ranks "..msg.ranks[i].uid)
|
||||
-- LogYellow("msg.proud "..msg.proud[i])
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -88,7 +88,7 @@ function this.SwitchView(index)
|
|||
local currankKingList = {}
|
||||
local _GoIndex = #rankKingListGo + 1
|
||||
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]
|
||||
if not go then
|
||||
go=newObject(this.ItemPre)
|
||||
|
|
Loading…
Reference in New Issue