【灵脉秘境】排行错误提交

dev_chengFeng
ZhangBiao 2021-11-22 16:52:21 +08:00
parent 425d4934b8
commit d688ae8ab9
2 changed files with 6 additions and 6 deletions

View File

@ -32,8 +32,8 @@ function this:OnShow(_parent)
self.data = LingMaiMiJingManager.recordData
if #self.data > 0 then
self.empty:SetActive(false)
for i = 1, #this.recordData do
if this.recordData[i].time == 1 then
for i = 1, #self.data do
if self.data[i].time == 1 then
PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time)
break
end

View File

@ -75,10 +75,10 @@ function LingMaiMiJingPanel:BindEvent()
LingMaiMiJingManager.OpenRecord()
end)
Util.AddOnceClick(self.rewardBtn, function()
NetManager.RequestRankInfo(RANK_TYPE.LINGMAIMIJING_RANK, function (msg)--请求数据
LogYellow("我的排名:"..tostring(msg.myRankInfo.rank))
UIManager.OpenPanel(UIName.GeneralRankRewardPanel,5,msg.myRankInfo.rank)--需要活动id和我的排名
end,0,1,0)
RankingManager.InitData(RANK_TYPE.LINGMAIMIJING_RANK, function(msg)
local data,myData=RankingManager.GetRankingInfo()
UIManager.OpenPanel(UIName.GeneralRankRewardPanel,5,myData.rank)--需要活动id和我的排名
end)
end)
Util.AddOnceClick(self.sortBtn, function()
UIManager.OpenPanel(UIName.RankingSingleListPanel,rankKingList[33])