From 2a845f0babe52ac324b3cbe294db7dcec9346042 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期一, 22 十二月 2025 19:07:24 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.1.20:10010/r/Project_SG_scripts

---
 Main/Utility/OperationLogCollect.cs |   51 +++++++++++++++++++++++++++------------------------
 1 files changed, 27 insertions(+), 24 deletions(-)

diff --git a/Main/Utility/OperationLogCollect.cs b/Main/Utility/OperationLogCollect.cs
index f5f6242..c13a4eb 100644
--- a/Main/Utility/OperationLogCollect.cs
+++ b/Main/Utility/OperationLogCollect.cs
@@ -170,7 +170,10 @@
             tables["Title"] = "system";
             _content = _content.Replace("0000", "");
             if (ConfigManager.Instance.isLoadFinished && DTC0102_tagCDBPlayer.playerIdBuf != 0 && LoginManager.Instance.sdkLoginResult != null && !string.IsNullOrEmpty(LoginManager.Instance.sdkLoginResult.account))
-                _content = LoginManager.Instance.sdkLoginResult.account + _content;
+            {
+                _content = StringUtility.Concat(LoginManager.Instance.sdkLoginResult.account, "@", ServerListCenter.Instance.currentServer.region_flag.ToString(), " ", _content);
+            }
+            
             tables["Content"] = _content.Substring(0, Math.Min(800, _content.Length));
             tables["ClientInfo"] = contentPrefix;
 
@@ -187,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 = 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
     }
 
 }

--
Gitblit v1.8.0