排行榜修改提交

dev_chengFeng
jiaoyangna 2021-09-01 16:39:09 +08:00
parent 19be216616
commit bfe127012e
2 changed files with 7 additions and 2 deletions

View File

@ -33,7 +33,7 @@ function this.InitData(rankType,fun,id,rankIndex)
end end
end end
end end
-- LogYellow("cur_rankType "..cur_rankType.." isCross "..isCross) --LogYellow("cur_rankType "..cur_rankType.." activiteId "..tostring(activiteId))
NetManager.RequestRankInfo(rankType, function (msg)--请求数据 NetManager.RequestRankInfo(rankType, function (msg)--请求数据
this.ReceiveRankingData(msg,fun) this.ReceiveRankingData(msg,fun)
end,activiteId,cur_rankIndex,isCross) end,activiteId,cur_rankIndex,isCross)

View File

@ -163,7 +163,12 @@ end
function this.GetRankInfo(rankType,rankIndex) function this.GetRankInfo(rankType,rankIndex)
RankingManager.CurPage=0 RankingManager.CurPage=0
this.istop=true this.istop=true
local curActivity = sData.activiteId > 0 and ActivityGiftManager.GetActivityIdByType(sData.activiteId) or nil local curActivity = 0
if sData.rankType == RANK_TYPE.PERSON_CHALLENGE then
curActivity = sData.activiteId
else
curActivity = sData.activiteId > 0 and ActivityGiftManager.GetActivityIdByType(sData.activiteId) or nil
end
RankingManager.InitData(rankType,function() RankingManager.InitData(rankType,function()
this.SetRankingInfo(true, true) this.SetRankingInfo(true, true)
end,curActivity,rankIndex) end,curActivity,rankIndex)