guodong 2 năm trước cách đây
mục cha
commit
e51130b33f

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

@@ -21,7 +21,9 @@ namespace GFGGame
             logData.Account = SystemInfo.deviceUniqueIdentifier;
             logData.EventType = node;
             var logStr = zoneScene.GetComponent<LogSplicingComponent>().LogObjectToStr(logData);
-            HttpTool.Instance.Post(GameConfig.logApiReportUrl, logStr);
+            //HttpTool.Instance.Post(GameConfig.logApiReportUrl, logStr);
+            var body = $"?logStr={logStr}";
+            HttpTool.Instance.Get(GameConfig.logApiReportUrl + body, null);
         }
         /// <summary>
         /// 发送玩法参与度
@@ -41,7 +43,9 @@ namespace GFGGame
             logData.EventType = eventType;
             logData.Type = type;
             var logStr = zoneScene.GetComponent<LogSplicingComponent>().LogObjectToStr(logData);
-            HttpTool.Instance.Post(GameConfig.logApiReportUrl, logStr);
+            //HttpTool.Instance.Post(GameConfig.logApiReportUrl, logStr);
+            var body = $"?logStr={logStr}";
+            HttpTool.Instance.Get(GameConfig.logApiReportUrl + body, null);
         }
     }
 }

+ 1 - 1
GameClient/Assets/Game/HotUpdate/GameConfig.cs

@@ -23,7 +23,7 @@ namespace GFGGame
             //LoginAddress = "10.108.64.127:10005";
             PlatformName = result.platformName;
             showGM = int.Parse(result.showGM);
-            GameConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "Report";
+            GameConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "ReportGet";
         }
 
         private struct Result

+ 1 - 0
GameClient/Assets/Game/Launcher/LauncherConfig.cs

@@ -69,6 +69,7 @@ namespace GFGGame
             LauncherConfig.CDN_ROOT = result.cdnRoot;
             //CDN_ROOT = "http://10.108.64.127/";
             LauncherConfig.logApiRootUrl = result.logApiUrl;
+            //LauncherConfig.logApiRootUrl = "http://10.108.64.106:8080/api/Log/";
             LauncherConfig.logApiReportLauncherUrl = LauncherConfig.logApiRootUrl + "ReportNode";
             LauncherConfig.logKey = result.logKey;
             LauncherConfig.apkVersion = result.apkVersion;

+ 4 - 3
GameClient/Assets/Game/Launcher/Log/LogServerHelperHttp.cs

@@ -1,4 +1,5 @@
-using System.Collections;
+using System;
+using System.Collections;
 using UnityEngine;
 
 namespace GFGGame
@@ -11,8 +12,8 @@ namespace GFGGame
         /// <param name="node"></param>
         public static void SendNodeLog(int node, int serverId = 1)
         {
-            var body = $"{LauncherConfig.platformId}|{SystemInfo.deviceUniqueIdentifier}|{node}";
-            HttpTool.Instance.Post(LauncherConfig.logApiReportLauncherUrl, body);
+            var body = $"?logStr={LauncherConfig.platformId}|{SystemInfo.deviceUniqueIdentifier}|{node}";
+            HttpTool.Instance.Get(LauncherConfig.logApiReportLauncherUrl + body, null);
         }
     }
 }

+ 1 - 1
GameClient/Assets/Game/Launcher/Net/Http/HttpTool.cs

@@ -33,7 +33,7 @@ namespace GFGGame
         public IEnumerator GetRequest(string url, Action<string> callback, bool showWrong)
         {
             var key = url;
-            //ET.Log.Debug("get url : " + key);
+            //Debug.Log("get url : " + key);
             using (UnityWebRequest webRequest = UnityWebRequest.Get(url))
             {
                 webRequest.timeout = LauncherConfig.HTTP_GET_TIME_OUT;