【ID1009862】

15日登录送白泽活动加入预告功能
dev_chengFeng
jiaoyangna 2021-07-24 15:46:00 +08:00
parent 7bc3a3d460
commit 24363d5c03
1 changed files with 3 additions and 5 deletions

View File

@ -754,9 +754,10 @@ end
--检测15日登陆活动预告是否显示
function this.FifteenNoticeShow()
if not not ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGiftNotice) then
local id = ActivityGiftManager.IsActivityTypeOpen(ActivityTypeDef.FifteenDayGiftNotice)
if id and id > 0 then
this.fifteenTip.gameObject:SetActive(true)
local activityData=ActivityGiftManager.GetActivityInfoByType(6402)
local activityData=ActivityGiftManager.GetActivityInfoByType(id)
if activityData then
--local day=()/86400
local day=floor((activityData.endTime - GetTimeStamp())/86400)
@ -766,8 +767,6 @@ function this.FifteenNoticeShow()
else
this.fifteenTip.gameObject:SetActive(false)
end
end
@ -1013,7 +1012,6 @@ function this:OnShow()
this:OnChangeTitleOrRideOrSkin()
--检测主城六星入口是否显示
this.CheckSixStarGoShow()
this.FifteenNoticeShow()
this.UpView:OnOpen({ showType = UpViewOpenType.ShowRight, panelType = PanelType.Main })
this.BtView:OnOpen(self, { sortOrder = self.sortingOrder, panelType = PanelTypeView.MainCity })