至尊降世活动结束不关闭提交

dev_chengFeng
jiaoyangna 2021-10-22 17:24:41 +08:00
parent f7db9fc907
commit 031895a9d1
2 changed files with 12 additions and 12 deletions

View File

@ -1360,9 +1360,9 @@ function this.TimeFormat()
local QingLong = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType) local QingLong = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType)
if QingLong and QingLong > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then if QingLong and QingLong > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then
if v.ActiveType == 42 then if v.ActiveType == 42 then
if ActivityGiftManager.CheckSupremeMission(1,true) and ActivityGiftManager.CheckSupremeMission(2,true) then -- if ActivityGiftManager.CheckSupremeMission(1,true) and ActivityGiftManager.CheckSupremeMission(2,true) then
showTab = false -- showTab = false
else -- else
local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero) local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero)
if endTime - PlayerManager.serverTime > 0 then if endTime - PlayerManager.serverTime > 0 then
local time = endTime - PlayerManager.serverTime local time = endTime - PlayerManager.serverTime
@ -1374,7 +1374,7 @@ function this.TimeFormat()
else else
showTab = false showTab = false
end end
end --end
elseif v.ActiveType == ActivityTypeDef.TreasureStore then elseif v.ActiveType == ActivityTypeDef.TreasureStore then
local endTime = CalculateSecondsNowTo_N_OClock(24) local endTime = CalculateSecondsNowTo_N_OClock(24)
if endTime > 0 then if endTime > 0 then
@ -1617,16 +1617,16 @@ function this.RefreshActivityShow()
local activityId = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType) local activityId = ActivityGiftManager.IsActivityTypeOpen(v.ActiveType)
if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then if activityId and activityId > 0 and ActivityGiftManager.IsQualifiled(v.ActiveType) then
if v.ActiveType == 42 then if v.ActiveType == 42 then
if ActivityGiftManager.CheckSupremeMission(1,true) and ActivityGiftManager.CheckSupremeMission(2,true) then -- if ActivityGiftManager.CheckSupremeMission(1,true) and ActivityGiftManager.CheckSupremeMission(2,true) then
showTab = false -- showTab = false
else -- else
local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero) local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero)
if endTime - PlayerManager.serverTime > 0 then if endTime - PlayerManager.serverTime > 0 then
showTab = true showTab = true
else else
showTab = false showTab = false
end end
end --end
elseif v.FunType and v.FunType == 41 then elseif v.FunType and v.FunType == 41 then
showTab = DailyRechargeManager.GetDailyRechargeExist() showTab = DailyRechargeManager.GetDailyRechargeExist()
elseif v.ActiveType == 78 then elseif v.ActiveType == 78 then

View File

@ -384,16 +384,16 @@ function RewardItemSingleShowPopup:OnShow()
elseif JumpConfig[jumpDataList[i]].Type == JumpType.ZhiZunJiangShi then elseif JumpConfig[jumpDataList[i]].Type == JumpType.ZhiZunJiangShi then
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero) local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.SupremeHero)
if id and id > 0 then if id and id > 0 then
if ActivityGiftManager.CheckSupremeMission(1,true) and ActivityGiftManager.CheckSupremeMission(2,true) then -- if ActivityGiftManager.CheckSupremeMission(1,true) and ActivityGiftManager.CheckSupremeMission(2,true) then
isShow = false -- isShow = false
else -- else
local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero) local endTime = ActivityGiftManager.GetTaskEndTime(ActivityTypeDef.SupremeHero)
if endTime - PlayerManager.serverTime > 0 then if endTime - PlayerManager.serverTime > 0 then
isShow = true isShow = true
else else
isShow = false isShow = false
end end
end --end
else else
isShow = false isShow = false
end end