拍脸修改提交
parent
8012c5691a
commit
12e0a2d0bb
|
@ -388,16 +388,36 @@ function this.SetPatFaceDaqta(PatFaceDatas)
|
||||||
--LogYellow("后端推送礼包拍脸 拍脸ID "..curRechargeCommodityConfig.PosterUiId)
|
--LogYellow("后端推送礼包拍脸 拍脸ID "..curRechargeCommodityConfig.PosterUiId)
|
||||||
local config = ConfigManager.GetConfigData(ConfigName.LoginPosterConfig,curRechargeCommodityConfig.PosterUiId)
|
local config = ConfigManager.GetConfigData(ConfigName.LoginPosterConfig,curRechargeCommodityConfig.PosterUiId)
|
||||||
local isShow = true
|
local isShow = true
|
||||||
for k,v in ipairs(this.backPatFaceAllData) do
|
if config.Type == FacePanelType.Surprise then
|
||||||
if config.Type == v.Type then
|
if not PlayerPrefs.HasKey(PlayerManager.uid.."Surprise") then
|
||||||
|
PlayerPrefs.SetString(PlayerManager.uid.."Surprise","0#0")
|
||||||
|
end
|
||||||
|
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
|
||||||
|
times = 0
|
||||||
|
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",curTimeStemp.."#"..times)
|
||||||
|
end
|
||||||
|
if times >= 2 then
|
||||||
isShow = false
|
isShow = false
|
||||||
break
|
else
|
||||||
|
for k,v in ipairs(this.backPatFaceAllData) do
|
||||||
|
if config.Type == v.Type then
|
||||||
|
isShow = false
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
if isShow then
|
||||||
|
times = times + 1
|
||||||
|
PlayerPrefs.SetString(PlayerManager.uid.."Surprise",str[1].."#"..times)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
if isShow then
|
if isShow then
|
||||||
table.insert(this.backPatFaceAllData,config)
|
table.insert(this.backPatFaceAllData,config)
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue