From 46621252d954b3d80b09bda06037b6f405385924 Mon Sep 17 00:00:00 2001 From: jiaoyangna <3046463818@qq.com> Date: Sat, 19 Jun 2021 15:50:39 +0800 Subject: [PATCH] =?UTF-8?q?=E6=83=8A=E5=96=9C=E7=A4=BC=E5=8C=85=E6=8B=8D?= =?UTF-8?q?=E8=84=B8=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua b/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua index 9fcead2c9c..c7dba10aa7 100644 --- a/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Expert/PatFaceManager.lua @@ -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