【公告】修复子包打开第二次后不再显示公告

dev_chengFeng
JieLing 2021-06-30 22:19:37 +08:00
parent 8e65171ac5
commit ab2a923477
1 changed files with 5 additions and 2 deletions

View File

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