guodong 2 年 前
コミット
107a6f2397

+ 3 - 6
GameClient/Assets/Game/HotUpdate/Controller/LogServerHelper.cs

@@ -19,9 +19,8 @@ namespace GFGGame
             logData.ServerId = zoneScene.GetComponent<ServerInfosComponent>().CurrentServerId;
             logData.Account = SystemInfo.deviceUniqueIdentifier;
             logData.EventType = node;
-            //var logStr = zoneScene.GetComponent<LogSplicingComponent>().LogObjectToStr(logData);
-            //var body = $"_{logStr}";
-            //HttpTool.Instance.Post(LauncherConfig.logApiUrl, body);
+            var logStr = zoneScene.GetComponent<LogSplicingComponent>().LogObjectToStr(logData);
+            HttpTool.Instance.Post(LauncherConfig.logApiUrl, logStr);
         }
         /// <summary>
         /// 发送玩法参与度
@@ -40,9 +39,7 @@ namespace GFGGame
             logData.EventType = eventType;
             logData.Type = type;
             var logStr = zoneScene.GetComponent<LogSplicingComponent>().LogObjectToStr(logData);
-            //LogSProxy.SendLog(logStr);
-            var body = $"_{logStr}";
-            //HttpTool.Instance.Post(LauncherConfig.logApiUrl, body);
+            HttpTool.Instance.Post(LauncherConfig.logApiUrl, logStr);
         }
     }
 }

+ 0 - 18
GameClient/Assets/Game/HotUpdate/ServerProxy/LogSProxy.cs

@@ -1,18 +0,0 @@
-using ET;
-
-namespace GFGGame
-{
-    public class LogSProxy
-    {
-
-        public static void SendLog(string message)
-        {
-            Session session = GameGlobal.zoneScene.GetComponent<SessionComponent>().GateSession;
-            if (session == null || session.IsDisposed)
-            {
-                return;
-            }
-            session.Send(new C2Log_AddLog() { Content = message});
-        }
-    }
-}

+ 0 - 11
GameClient/Assets/Game/HotUpdate/ServerProxy/LogSProxy.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 62c639097c2ddf04186fbd33a32db6bd
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: