【公告】修改公告在分子包时配置的字段

dev_chengFeng
gaoxin 2021-06-22 17:51:14 +08:00 committed by JieLing
parent abbdbfe3e4
commit c0a561e75e
2 changed files with 9 additions and 3 deletions

View File

@ -36,6 +36,12 @@ function PackageManager.GetPackageID()
return this.StreamConfig.PackID
end
end
-- 获取子渠道包公告配置
function PackageManager.GetSubNoticeID()
if this.StreamConfig then
return this.StreamConfig.SubNoticeID
end
end
-- 获取包名
function PackageManager.GetPackageName()
return this.PackageName

View File

@ -277,9 +277,9 @@ function this.ShowNotice()
RequestPanel.Show(Language[11137])
--LogError("LoginRoot_NoticeChannel=="..LoginRoot_NoticeChannel)
-- 如果有渠道包配置的id则加上
local packId = PackageManager.GetPackageID()
if packId then
LoginRoot_NoticeChannel = LoginRoot_NoticeChannel.. packId
local subNoticeID = PackageManager.GetSubNoticeID()
if subNoticeID then
LoginRoot_NoticeChannel = LoginRoot_NoticeChannel.. subNoticeID
end
networkMgr:SendGetHttp(LoginRoot_Url .. "jl_loginserver/getNotice?timestamp="..timeStamp.."&sign=".. timeSign.."&packageName="..LoginRoot_NoticeChannel,function (str)
UIManager.OpenPanel(UIName.NoticePopup,str)