guodong 2 жил өмнө
parent
commit
b29c7c02f2

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

@@ -20,7 +20,7 @@ namespace GFGGame
             logData.Account = SystemInfo.deviceUniqueIdentifier;
             logData.EventType = node;
             var logStr = zoneScene.GetComponent<LogSplicingComponent>().LogObjectToStr(logData);
-            HttpTool.Instance.Post(LauncherConfig.logApiReportUrl, logStr);
+            HttpTool.Instance.Post(GameConfig.logApiReportUrl, logStr);
         }
         /// <summary>
         /// 发送玩法参与度
@@ -39,7 +39,7 @@ namespace GFGGame
             logData.EventType = eventType;
             logData.Type = type;
             var logStr = zoneScene.GetComponent<LogSplicingComponent>().LogObjectToStr(logData);
-            HttpTool.Instance.Post(LauncherConfig.logApiReportUrl, logStr);
+            HttpTool.Instance.Post(GameConfig.logApiReportUrl, logStr);
         }
     }
 }

+ 2 - 0
GameClient/Assets/Game/HotUpdate/GameConfig.cs

@@ -10,6 +10,7 @@ namespace GFGGame
 
         public static string LoginAddress;
         public static string PlatformName;
+        public static string logApiReportUrl;
         public static int showGM;
 
         public static void InitData(string json)
@@ -20,6 +21,7 @@ namespace GFGGame
             //LoginAddress = "10.108.64.127:10005";
             PlatformName = result.platformName;
             showGM = int.Parse(result.showGM);
+            GameConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "Report";
         }
 
         private struct Result

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

@@ -25,7 +25,6 @@ namespace GFGGame
         public static int platformId = 1;
         public static string logKey;
         public static string logApiRootUrl;
-        public static string logApiReportUrl;
         public static string logApiReportNodeUrl;
         public static string apkVersion;
         public static int serverStatus;
@@ -70,8 +69,7 @@ namespace GFGGame
             LauncherConfig.CDN_ROOT = result.cdnRoot;
             //CDN_ROOT = "http://10.108.64.127/";
             LauncherConfig.logApiRootUrl = result.logApiUrl;
-            LauncherConfig.logApiReportUrl = LauncherConfig.logApiRootUrl + "/Report";
-            LauncherConfig.logApiReportNodeUrl = LauncherConfig.logApiRootUrl + "/ReportNode";
+            LauncherConfig.logApiReportNodeUrl = LauncherConfig.logApiRootUrl + "ReportNode";
             LauncherConfig.logKey = result.logKey;
             LauncherConfig.apkVersion = result.apkVersion;
             LauncherConfig.serverStatus = int.Parse(result.serverStatus);