yyl
2026-04-28 ad3ac1661daaf4b445914f87009d3d88c990f040
Main/Utility/OperationLogCollect.cs
@@ -9,6 +9,64 @@
{
#if TEST_BUILD
    const string url = "http://gamecenter.secondworld.net.cn:11000/center/eventreport.php?";
#else
    const string url = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
#endif
    //6001 启动游戏
    //6002 请求版本信息
    //6003 准备下载
    //6004 开始下载
    //6005 加载代码
    //6006 启动代码
    //6007 进入游戏
    //6008 拷贝表格
    //6009 请求权限
    //6010 初始化设置
    //6011 sdk初始化
    //6012 游戏版本信息
    //6013 检测资源
    //6014 下载资源
    //6015 加载资源
    //6016 加载表格
    //6017 加载 shader
    //6018 显示登录界面
    //6101 SDK初始化成功
    //6102 SDK初始化失败
    //6103 SDK账号登录成功
    //6104 SDK账号登录失败
    public void RecordLauchEvent(int _step)
    {
#if !UNITY_EDITOR
        //默认发送即使表没有初始化
        if (SDKUtils.Instance.AssetCopyFinished)
        {
            var config = InitialFunctionConfig.Get("Event");
            if (config != null && config.Numerical1 != "1")
            {
                return;
            }
        }
        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
    }
#if TEST_BUILD
    const string bugReportUrl = "http://gamecenter.secondworld.net.cn:11000/center/eventreport.php?";
#else
    const string bugReportUrl = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
@@ -104,6 +162,7 @@
        tables["ProductID"] = VersionConfig.Get().gameId;
        tables["OperatorID"] = VersionConfig.Get().appId;
        tables["OperatorName"] = string.Empty;
        tables["ChannelType"] = chatType.ToString();
        tables["RegionName"] = StringUtility.Concat("s", ServerListCenter.Instance.currentServer.region_flag.ToString());
        tables["RegionID"] = ServerListCenter.Instance.currentServer.region_flag.ToString();
        tables["EventID"] = 9003.ToString();
@@ -115,6 +174,7 @@
        tables["RoleID"] = StringUtility.Concat(isFairy ? UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.FamilyName) : string.Empty,
           isFairy ? "-" : string.Empty, UIHelper.ServerStringTrim(PlayerDatas.Instance.baseData.PlayerName));
        tables["ToRoleID"] = UIHelper.ServerStringTrim(toPlayer);
        tables["PlayerID"] = PlayerDatas.Instance.baseData.PlayerID.ToString();
        tables["Level"] = PlayerDatas.Instance.baseData.LV.ToString();
        tables["VIPLevel"] = PlayerDatas.Instance.baseData.VIPLv.ToString();
        tables["Content"] = UrlEncode(UIHelper.TrimContentToServer(content));