hch
2026-04-22 69783a7bc64858681fffe600d6570b7b723032f2
632 游戏启动记录
13个文件已修改
57 ■■■■■ 已修改文件
Main/Core/GameEngine/Launch/AssetBundleInitTask.cs 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/BuiltInAssetCopyTask.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/CheckAssetValidTask.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/ConfigInitTask.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/DownLoadAssetTask.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/GetVersionInfoTask.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/InitSettingTask.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/LaunchFadeOutTask.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/LaunchInHot.cs 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/RequestPermissionStart.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/SDKInitedTask.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Main.cs 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Utility/OperationLogCollect.cs 40 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Core/GameEngine/Launch/AssetBundleInitTask.cs
@@ -29,9 +29,10 @@
    public override void End()
    {
        expectTime = timer;
        expectTime = timer;
        // UILoader.LoadWindowAsync("LaunchBackGroundWin", null);
        Debug.LogFormat("{0}执行时长:{1};", this.GetType().Name, timer);
        OperationLogCollect.Instance.RecordLauchEvent(15);
    }
    public override void Update()
Main/Core/GameEngine/Launch/BuiltInAssetCopyTask.cs
@@ -69,6 +69,7 @@
        UIManager.Instance.CloseWindow<DownLoadWin>();
        UIManager.Instance.CloseWindow<VersionUpdateWin>();
        Language.InitDefaultLanguage();
        OperationLogCollect.Instance.RecordLauchEvent(8);
    }
    public override void Update()
Main/Core/GameEngine/Launch/CheckAssetValidTask.cs
@@ -52,6 +52,7 @@
        Debug.LogFormat("{0}执行时长:{1};", this.GetType().Name, timer);
        GameNotice.OpenGameNotice();
        OperationLogCollect.Instance.RecordLauchEvent(13);
    }
    public override void Update()
Main/Core/GameEngine/Launch/ConfigInitTask.cs
@@ -27,7 +27,7 @@
    {
        expectTime = timer;
        Debug.LogFormat("{0}执行时长:{1};", this.GetType().Name, timer);
        OperationLogCollect.Instance.RecordLauchEvent(16);
        // TODO YYL
        // OperationLogCollect.Instance.RecordLauchEvent(3);
        // OperationLogCollect.Instance.RecordEvent(3);
Main/Core/GameEngine/Launch/DownLoadAssetTask.cs
@@ -45,6 +45,7 @@
        {
            AssetVersionUtility.BeginDownLoadTask(false);
        }
        OperationLogCollect.Instance.RecordLauchEvent(14);
    }
    public override void Update()
Main/Core/GameEngine/Launch/GetVersionInfoTask.cs
@@ -52,6 +52,7 @@
    {
        expectTime = timer;
        Debug.LogFormat("{0}执行时长:{1};", this.GetType().Name, timer);
        OperationLogCollect.Instance.RecordLauchEvent(12);
    }
    public override void Update()
Main/Core/GameEngine/Launch/InitSettingTask.cs
@@ -42,6 +42,7 @@
    public override void End()
    {
        expectTime = timer;
        OperationLogCollect.Instance.RecordLauchEvent(10);
    }
    public override void Update()
Main/Core/GameEngine/Launch/LaunchFadeOutTask.cs
@@ -47,7 +47,7 @@
        expectTime = timer;
        Debug.LogFormat("{0}执行时长:{1};", this.GetType().Name, timer);
        OperationLogCollect.Instance.RecordLauchEvent(17);
    }
    public override void Update()
Main/Core/GameEngine/Launch/LaunchInHot.cs
@@ -37,7 +37,7 @@
            UIManager.Instance.OpenWindow<LaunchWin>();
        }
        OperationLogCollect.Instance.RecordLauchEvent(7);
        var builtInAssetCopyTask = new BuiltInAssetCopyTask();
        var requestPermissionStart = new RequestPermissionStart();
Main/Core/GameEngine/Launch/RequestPermissionStart.cs
@@ -36,6 +36,7 @@
    public override void End()
    {
        OperationLogCollect.Instance.RecordLauchEvent(9);
    }
    public override void Update()
Main/Core/GameEngine/Launch/SDKInitedTask.cs
@@ -32,6 +32,7 @@
        var memory = 2048;
        DeviceUtility.GetCpuAndMemory(out cpu, out memory);
        Debug.LogFormat("获得机器信息:cpu {0}----内存 {1}", cpu, memory);
        OperationLogCollect.Instance.RecordLauchEvent(11);
    }
Main/Main.cs
@@ -38,6 +38,7 @@
        SysNotifyMgr.Instance.BeforePlayerDataInitializeEvent();
#endif
        StageManager.Instance.ToLoginScene();
        OperationLogCollect.Instance.RecordLauchEvent(18);
    }
Main/Utility/OperationLogCollect.cs
@@ -8,6 +8,46 @@
public class OperationLogCollect : Singleton<OperationLogCollect>
{
    const string url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
    //6001 启动游戏
    //6002 请求版本信息
    //6003 准备下载
    //6004 开始下载
    //6005 加载代码
    //6006 启动代码
    //6007 进入游戏
    //6008 拷贝表格
    //6009 请求权限
    //6010 初始化设置
    //6011 sdk初始化
    //6012 游戏版本信息
    //6013 检测资源
    //6014 下载资源
    //6015 加载资源
    //6016 加载表格
    //6017 加载shader
    //6018 显示登录界面
    public void RecordLauchEvent(int _step)
    {
#if !UNITY_EDITOR
        var tables = new Dictionary<string, string>();
        tables["OperatorID"] = VersionConfig.Get().appId;
        tables["RegionName"] = "data";
        tables["EventID"] = (6000 + _step).ToString();
        tables["ProductID"] = VersionConfig.Get().gameId;
        tables["Device"] = DeviceUtility.GetDeviceModel();
        tables["os_version"] = DeviceUtility.GetDeviceOSLevel();
        tables["game_version"] = StringUtility.Concat(VersionConfig.Get().version, "_", VersionConfig.Get().buildIndex.ToString());
        tables["IMEI"] = DeviceUtility.GetDeviceUniquenessIdentify();
        tables["Time"] = System.DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        HttpRequest.Instance.RequestHttpGet(StringUtility.Concat(url, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType);
#endif
    }
    const string bugReportUrl = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
    public void BugReport(string _title, string _content)