热更界面一开始显示渠道 版本 服务器等信息
parent
a0ed25cfe5
commit
b2ccc36307
BIN
ProjectNLD/Assets/Art/UI/Fonts/SourceHanSansCN-Medium SDF.asset (Stored with Git LFS)
BIN
ProjectNLD/Assets/Art/UI/Fonts/SourceHanSansCN-Medium SDF.asset (Stored with Git LFS)
Binary file not shown.
|
|
@ -34,10 +34,10 @@ namespace Gameplay.Net
|
|||
if (Actor.Instance.Login.NextStatus != LoginStatusID.TapTap)
|
||||
return;
|
||||
|
||||
AppConfig.Instance.Select(PlayerPrefs.GetInt("ServerIndex", 1));
|
||||
AppConfig.Instance.Select(PlayerPrefs.GetInt("ServerIndex", 0));
|
||||
BIManager.Instance.TrackEvent("login_request", new Dictionary<string, object>
|
||||
{
|
||||
{"method",1 }//1: taptap
|
||||
{"method",0 }//1: taptap
|
||||
});
|
||||
BIManager.Instance.TrackEventOnce("fte_login_request", null);
|
||||
//WaitingForServer.Instance.EventWaiting(WaitingForServer.EventName.LoginRequest);
|
||||
|
|
|
|||
|
|
@ -40,8 +40,12 @@ public class GameLauncher : MonoBehaviour
|
|||
versionUpdateUI.UpdateProgress(0f);
|
||||
versionUpdateUI.UpdateProgressText("尝试网络连接中...");
|
||||
_versionUpdateHandle = new VersionUpdateHandle(versionUpdateUI);
|
||||
|
||||
VersionUpdateInfo versionUpdateInfo = _versionUpdateHandle.GetVersionInfo();
|
||||
PackDataInst.CreateInst();
|
||||
|
||||
UpdateLocalInfo localInfo = PackDataInst.inst.localInfo;
|
||||
versionUpdateUI.ShowVersion(Application.version, localInfo.workSpace, localInfo.localFullVersion, "获取中...", "获取中...");
|
||||
|
||||
#if SDK_TALKINGDATA
|
||||
BIToolinAOT.Instance.Init(TalkingDataInitTool.appID, TalkingDataInitTool.channel);//TalkingData初始化
|
||||
#endif
|
||||
|
|
@ -57,6 +61,7 @@ public class GameLauncher : MonoBehaviour
|
|||
downloadResult = await PreConfig.instance.DownloadConfig();
|
||||
|
||||
versionUpdateUI.UpdateProgressText("请求APPConfig结束");
|
||||
versionUpdateUI.ShowVersion(Application.version, localInfo.workSpace, localInfo.localFullVersion, "获取中...", PreConfig.instance.ServerName);
|
||||
BIToolinAOT.Instance.TrackEventInAOT("app_config_response", new System.Collections.Generic.Dictionary<string, object>(){
|
||||
{"result", downloadResult? 0 : 1 }
|
||||
});
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
using Cysharp.Threading.Tasks;
|
||||
using PhxhSDK.AOT.PreConfig;
|
||||
using PhxhSDK.AOT.VersionUpdate;
|
||||
using UnityEngine;
|
||||
namespace Code.Scripts.HotUpdate.UI
|
||||
|
|
@ -30,6 +31,13 @@ namespace Code.Scripts.HotUpdate.UI
|
|||
TempUpdateUI.Instance.m_TextVersion.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
public void ShowVersion(string curAotVersion, string workSpace, string curResVersion, string newResVersion, string serverName)
|
||||
{
|
||||
string version = $"游戏版本:{curAotVersion},渠道:{workSpace},当前资源版本:{curResVersion},最新资源版本:{newResVersion},服务器:{serverName}";
|
||||
TempUpdateUI.Instance.m_TextVersion.text = version;
|
||||
TempUpdateUI.Instance.m_TextVersion.gameObject.SetActive(true);
|
||||
}
|
||||
|
||||
public void UpdateProgress(float progress)
|
||||
{
|
||||
TempUpdateUI.Instance.m_ProgressObj.SetActive(true);
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
Subproject commit 4954a29989d59c40d6aa3cebe5b55d514dc11a62
|
||||
Subproject commit 3042e09f62c3f74ac7be23cc3631cf904edecf79
|
||||
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue