惊喜礼包拍脸修改

dev_chengFeng
jiaoyangna 2021-06-19 15:50:39 +08:00
parent b6b55590b3
commit 46621252d9
1 changed files with 3 additions and 3 deletions

View File

@ -395,8 +395,8 @@ function this.SetPatFaceDaqta(PatFaceDatas)
local str = PlayerPrefs.GetString(PlayerManager.uid.."Surprise")
str = string.split(str,"#")
local curTimeStemp = math.floor(GetTimeStamp() / (24 * 3600))
local times = str[2]
if str[1] ~= curTimeStemp then
local times = tonumber(str[2])
if tonumber(str[1]) ~= curTimeStemp then
times = 0
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",curTimeStemp.."#"..times)
end
@ -411,7 +411,7 @@ function this.SetPatFaceDaqta(PatFaceDatas)
end
if isShow then
times = times + 1
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",str[1].."#"..times)
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",curTimeStemp.."#"..times)
end
end
end