【玉皇大帝入口】如果购买完成长礼包,就不显示

dev_chengFeng
ZhangBiao 2021-06-02 14:50:18 +08:00
parent c2f905940b
commit e1145deced
1 changed files with 12 additions and 1 deletions

View File

@ -728,7 +728,18 @@ end
function this.CheckSixStarGoShow()
local time=PlayerPrefs.GetString(PlayerManager.uid..PlayerManager.serverInfo.server_id.."supermeMan",0)
if time and time~=0 and time~=666 and GetTimeStamp()-time< 259200 then
this.btnSixStarGo:SetActive(true)
for _, shopData in ipairs(ShopManager.allShopData) do
if shopData.id == 20 then
for _, v in ipairs(shopData.storeItem) do
local time = shopItemConfig[v.id].Limit - v.buyNum
if time > 0 then
this.btnSixStarGo:SetActive(true)
return
end
end
end
end
this.btnSixStarGo:SetActive(false)
else
this.btnSixStarGo:SetActive(false)
end