From 6cd26e96af69241bf6f07feac14002ffb7e932ea Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 22 Nov 2021 19:11:07 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E7=81=B5=E8=84=89=E7=A7=98=E5=A2=83?= =?UTF-8?q?=E3=80=91=E7=BA=AA=E5=BD=95=E6=8D=A2=E8=A1=8C=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua | 4 ++-- .../~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua index 13dabfc3ce..88684baf23 100644 --- a/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua +++ b/Assets/ManagedResources/~Lua/Modules/GeneralPanel/View/GeneralBigPopup_LingMaiRecord.lua @@ -34,7 +34,7 @@ function this:OnShow(_parent) self.empty:SetActive(false) for i = 1, #self.data do if self.data[i].type == 1 then - PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[1].time) + PlayerPrefs.SetString(PlayerManager.uid.."LingMai",self.data[i].time) break end end @@ -59,7 +59,7 @@ function this:SetSingleData(_go,_data,_index) time.text = string.format( "[%s]",TimeStampToDateStr5(_data.time)) if _data.type == 0 then - desc.text = string.format("经过一番激烈的战斗,最终击败%s %s,占领%s,开始收集灵脉资源",tostring(_data.defServerName),PracticeManager.SetNameColor(_data.defName,_data.practiceLevel),lodeConfig[_data.lingMaiId].Name) + desc.text = string.format("经过一番激烈的战斗,最终击败(%s)%s,占领%s,开始收集灵脉资源",tostring(_data.defServerName),PracticeManager.SetNameColor(_data.defName,_data.practiceLevel),lodeConfig[_data.lingMaiId].Name) elseif _data.type == 1 then desc.text = string.format("大战过后,我方神将不敌(%s)%s,丢失%s",tostring(_data.defServerName),PracticeManager.SetNameColor(_data.defName,_data.practiceLevel),lodeConfig[_data.lingMaiId].Name) end diff --git a/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua b/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua index 564e9d2ab2..a1dedd8023 100644 --- a/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/LingMaiMiJing/LingMaiMiJingManager.lua @@ -154,8 +154,8 @@ function this.CheckRedPoint() PlayerPrefs.SetString(PlayerManager.uid.."LingMai", "") end for i = 1, #this.recordData do - if PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[i].time) and this.recordData[i].type == 1 then - return true + if this.recordData[i].type == 1 then + return PlayerPrefs.GetString(PlayerManager.uid.."LingMai") ~= tostring(this.recordData[i].time) end end end