太初秘卷红点提交

(cherry picked from commit cbdcb66b07470bbc0662f04627503a175c097c8f)
dev_chengFeng
jiaoyangna 2021-08-23 14:08:42 +08:00
parent a7350e7f53
commit ca656636ac
5 changed files with 15 additions and 0 deletions

View File

@ -944,6 +944,7 @@ RedPointType = {
chaozhijijin = 80, chaozhijijin = 80,
linglongBaojing = 671, linglongBaojing = 671,
TaiChuMiJuan = 670,
} }
RedPointStatus = { RedPointStatus = {

View File

@ -87,6 +87,16 @@ function this.GetATaiChuMiJuanData(data)
end end
end end
function this.CheckRedPointTaiChu()
if not PlayerPrefs.HasKey("TaiChu"..PlayerManager.uid) then
return true
elseif PlayerPrefs.GetInt("TaiChu"..PlayerManager.uid) == 1 then
return true
else
return false
end
end
function this.SetSelectIndex(dataType,goodsId,b) function this.SetSelectIndex(dataType,goodsId,b)
this.selectIndex.dataType = dataType this.selectIndex.dataType = dataType
this.selectIndex.goodsId = goodsId this.selectIndex.goodsId = goodsId

View File

@ -314,6 +314,8 @@ function this:BindEvent()
table.sort(data,function(a,b) table.sort(data,function(a,b)
return a.id < b.id return a.id < b.id
end) end)
PlayerPrefs.SetInt("TaiChu"..PlayerManager.uid,0)
CheckRedPointStatus(RedPointType.TaiChuMiJuan)
UIManager.OpenPanel(UIName.taiChuMiJuan,data) UIManager.OpenPanel(UIName.taiChuMiJuan,data)
end) end)
end) end)

View File

@ -313,6 +313,7 @@ function this.RefreshUpdateIndication(buffer)
CheckRedPointStatus(RedPointType.Guild_AidBox) CheckRedPointStatus(RedPointType.Guild_AidBox)
CheckRedPointStatus(RedPointType.Guild_AidGuild) CheckRedPointStatus(RedPointType.Guild_AidGuild)
CheckRedPointStatus(RedPointType.Guild_AidMy) CheckRedPointStatus(RedPointType.Guild_AidMy)
CheckRedPointStatus(RedPointType.TaiChuMiJuan)
LuckyTurnTableManager.SetTimes(msg.hadLuckTime,msg.hadAdvanceLuckyTime) LuckyTurnTableManager.SetTimes(msg.hadLuckTime,msg.hadAdvanceLuckyTime)
CheckRedPointStatus(RedPointType.Arena_Free) CheckRedPointStatus(RedPointType.Arena_Free)

View File

@ -540,6 +540,7 @@ function this.RegisterRedCheckFunc()
RPData:AddCheckFunc(RedPointType.jijin328,ActivityGiftManager.CheckRedpointUpperMonthCard) RPData:AddCheckFunc(RedPointType.jijin328,ActivityGiftManager.CheckRedpointUpperMonthCard)
RPData:AddCheckFunc(RedPointType.linglongBaojing,LingLongBaoJingManager.CheckRedPointLingLong) RPData:AddCheckFunc(RedPointType.linglongBaojing,LingLongBaoJingManager.CheckRedPointLingLong)
RPData:AddCheckFunc(RedPointType.TaiChuMiJuan,DynamicActivityManager.CheckRedPointTaiChu)
end end