惊喜礼包拍脸修改
parent
b6b55590b3
commit
46621252d9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue