hch
2025-12-22 eff3422e63c54153c5805540c9c2feec10eb59d0
0312 修复编译报错
1个文件已修改
46 ■■■■ 已修改文件
Main/Utility/OperationLogCollect.cs 46 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
Main/Utility/OperationLogCollect.cs
@@ -187,30 +187,30 @@
    const string chatReportUrl = "http://xssgcenter.secondworld.net.cn:11000/center/eventreport.php?";
    public void ChatReport(string content, string channelName, string toPlayer, int chatType)
    {
#if !UNITY_EDITOR
        bool isFairy = false; //chatType == ChatInfoType.Fairy;
        var tables = new Dictionary<string, string>();
        tables["ProductID"] = VersionConfig.Get().gameId;
        tables["OperatorID"] = VersionConfig.Get().appId;
        tables["OperatorName"] = string.Empty;
        tables["RegionName"] = StringUtility.Concat("s", ServerListCenter.Instance.currentServer.region_flag);
        tables["RegionID"] = ServerListCenter.Instance.currentServer.region_flag.ToString();
        tables["EventID"] = 9003.ToString();
        tables["Time"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
        tables["IP"] = DeviceUtility.GetIp();
        tables["ChatChannel"] = channelName;
        var sdkLoginResult = ModelCenter.Instance.GetModel<LoginModel>().sdkLoginResult;
        tables["AccountID"] = sdkLoginResult == null ? string.Empty : sdkLoginResult.account;
        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["Level"] = PlayerDatas.Instance.baseData.LV.ToString();
        tables["VIPLevel"] = PlayerDatas.Instance.baseData.VIPLv.ToString();
        tables["Content"] = WWW.EscapeURL(UIHelper.TrimContentToServer(content));
        tables["DeviceFlag"] = ynmbxxjUtil.Instance.Device == null ? string.Empty : ynmbxxjUtil.Instance.Device.uniqueID;
// #if !UNITY_EDITOR
//         bool isFairy = false; //chatType == ChatInfoType.Fairy;
//         var tables = new Dictionary<string, string>();
//         tables["ProductID"] = VersionConfig.Get().gameId;
//         tables["OperatorID"] = VersionConfig.Get().appId;
//         tables["OperatorName"] = string.Empty;
//         tables["RegionName"] = StringUtility.Concat("s", ServerListCenter.Instance.currentServer.region_flag);
//         tables["RegionID"] = ServerListCenter.Instance.currentServer.region_flag.ToString();
//         tables["EventID"] = 9003.ToString();
//         tables["Time"] = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
//         tables["IP"] = DeviceUtility.GetIp();
//         tables["ChatChannel"] = channelName;
//         var sdkLoginResult = ModelCenter.Instance.GetModel<LoginModel>().sdkLoginResult;
//         tables["AccountID"] = sdkLoginResult == null ? string.Empty : sdkLoginResult.account;
//         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["Level"] = PlayerDatas.Instance.baseData.LV.ToString();
//         tables["VIPLevel"] = PlayerDatas.Instance.baseData.VIPLv.ToString();
//         tables["Content"] = WWW.EscapeURL(UIHelper.TrimContentToServer(content));
//         tables["DeviceFlag"] = ynmbxxjUtil.Instance.Device == null ? string.Empty : ynmbxxjUtil.Instance.Device.uniqueID;
        HttpRequest.Instance.RequestHttpGet(StringUtility.Concat(chatReportUrl, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType);
#endif
//         HttpRequest.Instance.RequestHttpGet(StringUtility.Concat(chatReportUrl, HttpRequest.HashtablaToString(tables)), HttpRequest.defaultHttpContentType);
// #endif
    }
}