【玉皇大帝入口】如果购买完成长礼包,就不显示
parent
c2f905940b
commit
e1145deced
|
@ -728,7 +728,18 @@ end
|
||||||
function this.CheckSixStarGoShow()
|
function this.CheckSixStarGoShow()
|
||||||
local time=PlayerPrefs.GetString(PlayerManager.uid..PlayerManager.serverInfo.server_id.."supermeMan",0)
|
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
|
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
|
else
|
||||||
this.btnSixStarGo:SetActive(false)
|
this.btnSixStarGo:SetActive(false)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue