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