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

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 self.data = LingMaiMiJingManager.recordData
if #self.data > 0 then if #self.data > 0 then
self.empty:SetActive(false) self.empty:SetActive(false)
for i = 1, #this.recordData do for i = 1, #self.data do
if this.recordData[i].time == 1 then if self.data[i].time == 1 then
PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time) PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time)
break break
end end

View File

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