From 3e54a6b15a3804dc688aa57cd7877d6b12264328 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期一, 12 一月 2026 14:44:53 +0800
Subject: [PATCH] 0312 聊天监控
---
Main/Utility/OperationLogCollect.cs | 46 +++++++++++++++++++++++-----------------------
1 files changed, 23 insertions(+), 23 deletions(-)
diff --git a/Main/Utility/OperationLogCollect.cs b/Main/Utility/OperationLogCollect.cs
index d92aafe..3811b0f 100644
--- a/Main/Utility/OperationLogCollect.cs
+++ b/Main/Utility/OperationLogCollect.cs
@@ -190,30 +190,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 = chatType == 3;
-// 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.ToString());
-// 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 = LoginManager.Instance.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"] = SDKUtils.Instance.Device == null ? string.Empty : SDKUtils.Instance.Device.uniqueID;
+#if !UNITY_EDITOR
+ bool isFairy = chatType == 3;
+ 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.ToString());
+ 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 = LoginManager.Instance.sdkLoginResult;
+ tables["AccountID"] = sdkLoginResult == null ? LoginManager.Instance.accountBuf : 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"] = SDKUtils.Instance.Device == null ? string.Empty : SDKUtils.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
}
}
--
Gitblit v1.8.0