【玉皇大帝】入口顯示

dev_chengFeng
ZhangBiao 2021-06-02 15:12:44 +08:00
parent a6c7de8151
commit 592fad463d
2 changed files with 1 additions and 12 deletions

View File

@ -728,17 +728,6 @@ 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
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(false)
return
end
end
end
end
this.btnSixStarGo:SetActive(true)
else
this.btnSixStarGo:SetActive(false)

View File

@ -132,7 +132,7 @@ function GiftPre:BuyAction(costId, costNum, shopType, itemId)
self.parent:RefreshData(nil,false,false)
CheckRedPointStatus(RedPointType.DailyGift)
CheckRedPointStatus(RedPointType.GrowthPackage)
if shopType==20 and (itemId==1107 or itemId==1110 or itemId==1111 or itemId==1112 )then
if shopType==20 and (itemId==1107 or itemId==1110 or itemId==1111 or itemId==1108 )then
PlayerPrefs.SetString(PlayerManager.uid..PlayerManager.serverInfo.server_id.."supermeMan",666)
end
end)