【福星高照】不关闭修复

dev_chengFeng
ZhangBiao 2021-03-30 22:42:17 +08:00
parent bdcfd4cc65
commit afcfa71db7
3 changed files with 14 additions and 9 deletions

View File

@ -223,13 +223,15 @@ function this.PatFaceSpecialMonitor(v,patFaceAllData,type,starUpGiftNum)
table.insert(patFaceAllData,v)
end
end
-- elseif v.Type == 12 then--福星高照活动
-- local ActData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.FuXingGaoZhao)
-- if ActData then
-- if RedPointManager.PlayerPrefsGetStr(v.Id..PlayerManager.level.."TimeLimitSkin") == "0" then
-- table.insert(patFaceAllData,v)
-- end
-- end
elseif v.Type == 12 then--福星高照活动
local ActData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.FuXingGaoZhao)
local data = string.split(ConfigManager.GetConfigDataByKey(ConfigName.SpecialConfig,"Id",109).Value,"#")
local time = ActData.startTime + tonumber(data[1])*86400 - GetTimeStamp()
if time >0 then
if RedPointManager.PlayerPrefsGetStr(v.Id.."PatFace") == "0" then
table.insert(patFaceAllData,v)
end
end
else
if RedPointManager.PlayerPrefsGetStr(v.Id.."PatFace") == "0" then
table.insert(patFaceAllData,v)

View File

@ -117,7 +117,7 @@ function FuXingGaoZhao:SetTime()
self.timer = nil
end
local time = data.startTime + tonumber(timeData[1])*86400 - GetTimeStamp()
self.time.text = string.format("剩余接受时间:%s",TimeToFelaxible(time))
self.time.text = string.format("剩余结束时间:%s",TimeToFelaxible(time))
self.timer = Timer.New(function()
time = time - 1
if time < 1 then
@ -125,7 +125,7 @@ function FuXingGaoZhao:SetTime()
self.timer = nil
self:ClosePanel()
end
self.time.text = string.format("剩余接受时间:%s",TimeToFelaxible(time))
self.time.text = string.format("剩余结束时间:%s",TimeToFelaxible(time))
end, 1, -1, true)
self.timer:Start()
end

View File

@ -1000,6 +1000,9 @@ function this.TimeFormat()
local data = string.split(ConfigManager.GetConfigDataByKey(ConfigName.SpecialConfig,"Id",109).Value,"#")
local time = ActData.startTime + tonumber(data[1])*86400 - GetTimeStamp()
activityTabs[k].timeText.text = TimeToFelaxible(time)
if time <= 0 then
activityTabs[k].go.gameObject:SetActive(false)
end
end
else
activityTabs[k].go.gameObject:SetActive(false)