【公告】修改公告的字段名,version工具添加公告配置

dev_chengFeng
gaoxin 2021-05-18 15:37:37 +08:00
parent d19c7e1baf
commit 1da9223506
2 changed files with 6 additions and 3 deletions

View File

@ -20,7 +20,7 @@ local LoginRoot_SubChannel = ServerConfigManager.GetVersionInfo("subChannel")
local LoginRoot_Channel = ServerConfigManager.GetVersionInfo("channel")
local LoginRoot_Version = ServerConfigManager.GetVersionInfo("version")
local LoginRoot_PackageVersion = ServerConfigManager.GetVersionInfo("packageVersion")
local PackageName = ServerConfigManager.GetVersionInfo("packageName")
local LoginRoot_NoticeChannel = ServerConfigManager.GetVersionInfo("noticeChannel")
local orginLayer
local timeStamp = Time.realtimeSinceStartup
@ -243,8 +243,8 @@ end
-- 打开公告界面
function this.ShowNotice()
RequestPanel.Show(Language[11137])
LogError("packageName=="..PackageName)
networkMgr:SendGetHttp(LoginRoot_Url .. "jl_loginserver/getNotice?timestamp="..timeStamp.."&sign=".. timeSign.."&packageName="..PackageName,function (str)
--LogError("LoginRoot_NoticeChannel=="..LoginRoot_NoticeChannel)
networkMgr:SendGetHttp(LoginRoot_Url .. "jl_loginserver/getNotice?timestamp="..timeStamp.."&sign=".. timeSign.."&packageName="..LoginRoot_NoticeChannel,function (str)
UIManager.OpenPanel(UIName.NoticePopup,str)
end, nil, nil, nil)
end

View File

@ -241,6 +241,7 @@ namespace GameEditor.FrameTool {
public string packageVersion;
public string version;
public string serverUrl;
public string noticeChannel;
}
@ -338,6 +339,8 @@ namespace GameEditor.FrameTool {
m_VersionTxt.packageVersion = EditorGUILayout.TextField("", m_VersionTxt.packageVersion);
EditorGUILayout.LabelField("热更版本号:");
m_VersionTxt.version = EditorGUILayout.TextField("", m_VersionTxt.version);
EditorGUILayout.LabelField("公告:");
m_VersionTxt.noticeChannel = EditorGUILayout.TextField("", m_VersionTxt.noticeChannel);
EditorGUILayout.EndVertical();
if (GUILayout.Button("应用", GUILayout.Height(40f)))