【灵脉秘境】纪录换行问题修改

dev_chengFeng
ZhangBiao 2021-11-22 19:11:07 +08:00
parent fbb58dbfdc
commit 6cd26e96af
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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