【公告】修改公告在分子包时配置的字段
parent
abbdbfe3e4
commit
c0a561e75e
|
@ -36,6 +36,12 @@ function PackageManager.GetPackageID()
|
||||||
return this.StreamConfig.PackID
|
return this.StreamConfig.PackID
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
-- 获取子渠道包公告配置
|
||||||
|
function PackageManager.GetSubNoticeID()
|
||||||
|
if this.StreamConfig then
|
||||||
|
return this.StreamConfig.SubNoticeID
|
||||||
|
end
|
||||||
|
end
|
||||||
-- 获取包名
|
-- 获取包名
|
||||||
function PackageManager.GetPackageName()
|
function PackageManager.GetPackageName()
|
||||||
return this.PackageName
|
return this.PackageName
|
||||||
|
|
|
@ -277,9 +277,9 @@ function this.ShowNotice()
|
||||||
RequestPanel.Show(Language[11137])
|
RequestPanel.Show(Language[11137])
|
||||||
--LogError("LoginRoot_NoticeChannel=="..LoginRoot_NoticeChannel)
|
--LogError("LoginRoot_NoticeChannel=="..LoginRoot_NoticeChannel)
|
||||||
-- 如果有渠道包配置的id则加上
|
-- 如果有渠道包配置的id则加上
|
||||||
local packId = PackageManager.GetPackageID()
|
local subNoticeID = PackageManager.GetSubNoticeID()
|
||||||
if packId then
|
if subNoticeID then
|
||||||
LoginRoot_NoticeChannel = LoginRoot_NoticeChannel.. packId
|
LoginRoot_NoticeChannel = LoginRoot_NoticeChannel.. subNoticeID
|
||||||
end
|
end
|
||||||
networkMgr:SendGetHttp(LoginRoot_Url .. "jl_loginserver/getNotice?timestamp="..timeStamp.."&sign=".. timeSign.."&packageName="..LoginRoot_NoticeChannel,function (str)
|
networkMgr:SendGetHttp(LoginRoot_Url .. "jl_loginserver/getNotice?timestamp="..timeStamp.."&sign=".. timeSign.."&packageName="..LoginRoot_NoticeChannel,function (str)
|
||||||
UIManager.OpenPanel(UIName.NoticePopup,str)
|
UIManager.OpenPanel(UIName.NoticePopup,str)
|
||||||
|
|
Loading…
Reference in New Issue