八日登陆刷新时间从24改道5

dev_chengFeng
ZhangBiao 2020-08-31 15:22:22 +08:00
parent d1e0e6e133
commit 9bbe08043a
1 changed files with 5 additions and 2 deletions

View File

@ -61,7 +61,10 @@ end
function EightDayGiftPanel:Refresh()
rewardData = ActivityGiftManager.GetActivityTypeInfo(ActivityTypeDef.EightDayGift)
curDay = math.ceil((CalculateSecondsNowTo_N_OClock(24) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
curDay = math.ceil((CalculateSecondsNowTo_N_OClock(5) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
-- LogYellow((CalculateSecondsNowTo_N_OClock(5) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
-- LogGreen((CalculateSecondsNowTo_N_OClock(24) + GetTimeStamp() - PlayerManager.userCreateTime)/86400)
if curDay>8 then
curDay = 8
end
@ -255,7 +258,7 @@ function EightDayGiftPanel:SetRemainTime(day,i)
end
if not self.localTimer then
self.localTimer = Timer.New(function ()
local t = CalculateSecondsNowTo_N_OClock(24)
local t = CalculateSecondsNowTo_N_OClock(5)
if t-1 < 0 then
Timer.New(function()
poolManager:UnLoadLive(bgName, Live)