diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua index dadd940cfc..9d2dbabea7 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua @@ -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 diff --git a/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingPanel.lua b/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingPanel.lua index a8c6a426b2..41826d8d49 100644 --- a/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingPanel.lua @@ -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])