PC-202302260912\Administrator 2025-07-22 19:25:07 +08:00
parent beb5b9902a
commit baee77bf14
3 changed files with 14 additions and 11 deletions

View File

@ -72,7 +72,7 @@ local _GuildBuildConfig = {
end, end,
}, },
[GUILD_MAP_BUILD_TYPE.REDBAG] = { --联盟红包 [GUILD_MAP_BUILD_TYPE.REDBAG] = { --联盟红包
isOpen = true, isOpen = GetChannelConfig().Button_PlayerSet_Exchange,
rpType = RedPointType.Guild_RedPacket, rpType = RedPointType.Guild_RedPacket,
btnName = "btnRedBag", btnName = "btnRedBag",
btnFunc = function() btnFunc = function()

View File

@ -26,7 +26,8 @@ function LeadPanel:InitComponent()
this.normal = Util.GetGameObject(this.gameObject, "Research/normal")--普通 this.normal = Util.GetGameObject(this.gameObject, "Research/normal")--普通
this.privilege = Util.GetGameObject(this.gameObject, "Research/privilege")--特权 this.privilege = Util.GetGameObject(this.gameObject, "Research/privilege")--特权
local channelConfig = GetChannelConfig()
this.privilege:SetActive(channelConfig.Button_PlayerSet_Exchange)
this.ordproText = Util.GetGameObject(this.gameObject, "ordproText")--普通 this.ordproText = Util.GetGameObject(this.gameObject, "ordproText")--普通
this.prigeproText = Util.GetGameObject(this.gameObject, "prigeproText")--特权 this.prigeproText = Util.GetGameObject(this.gameObject, "prigeproText")--特权

View File

@ -787,20 +787,22 @@ function GiftView:TimeCountDown()
if RECHARGEABLE then--(是否开启充值) if RECHARGEABLE then--(是否开启充值)
self.localTimerV2 = Timer.New(function() self.localTimerV2 = Timer.New(function()
local t1,t2 = timerList[1].freshTime, timerList[2].freshTime if timerList[1] and timerList[2] then
t1 = t1-1 local t1,t2 = timerList[1].freshTime, timerList[2].freshTime
t2 = t2-1 t1 = t1-1
if t1 < 0 then t2 = t2-1
if t1 < 0 then
-- body刷新 -- body刷新
-- self:RefreshGiftData() -- self:RefreshGiftData()
end end
if t2 < 0 then if t2 < 0 then
-- body刷新 -- body刷新
-- self:RefreshGiftData() -- self:RefreshGiftData()
end end
timerList[1].pre.text = GetLanguageStrById(10561) .. self:SpecialTime(t1-GetTimeStamp()) timerList[1].pre.text = GetLanguageStrById(10561) .. self:SpecialTime(t1-GetTimeStamp())
timerList[2].pre.text = GetLanguageStrById(10561) .. self:SpecialTime(t2-GetTimeStamp()) timerList[2].pre.text = GetLanguageStrById(10561) .. self:SpecialTime(t2-GetTimeStamp())
end
end,1,-1,true) end,1,-1,true)
self.localTimerV2:Start() self.localTimerV2:Start()
end end