【排行榜】膜拜转圈儿修复
parent
a4ee19a351
commit
a8c9c836a9
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue