From 30c5c431fcdb8d6d8beb1f614136870c72b7260e Mon Sep 17 00:00:00 2001 From: yangyakun Date: Tue, 24 Jun 2025 11:19:00 +0800 Subject: [PATCH] =?UTF-8?q?[8.1.0]=20[fea]=20[=E8=87=AA=E9=A9=BE=E6=B5=81?= =?UTF-8?q?=E7=A8=8B=E6=B7=BB=E5=8A=A0=E9=93=BE=E8=B7=AF=E6=97=A5=E5=BF=97?= =?UTF-8?q?]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../och/bridge/autopilot/autopilot/OchAutopilotAnalytics.kt | 6 ++++++ .../module/manager/logchainanalytic/OchChainLogManager.kt | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/OCH/common/bridge/src/main/java/com/mogo/och/bridge/autopilot/autopilot/OchAutopilotAnalytics.kt b/OCH/common/bridge/src/main/java/com/mogo/och/bridge/autopilot/autopilot/OchAutopilotAnalytics.kt index 8ffb14cca1..04a022858d 100644 --- a/OCH/common/bridge/src/main/java/com/mogo/och/bridge/autopilot/autopilot/OchAutopilotAnalytics.kt +++ b/OCH/common/bridge/src/main/java/com/mogo/och/bridge/autopilot/autopilot/OchAutopilotAnalytics.kt @@ -73,6 +73,7 @@ object OchAutopilotAnalytics { params[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP OchChainLogManager.addCommonParams(params) MogoAnalyticUtils.track(EVENT_KEY_START_AUTOPILOT_PARAMETERS, params) + OchChainLogManager.writeChainLogAutopilot("正式启动自驾把参数传给底层",params.toString(),false) } /** @@ -86,6 +87,7 @@ object OchAutopilotAnalytics { params[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP OchChainLogManager.addCommonParams(params) MogoAnalyticUtils.track(EVENT_KEY_START_AUTOPILOT_ACK, params) + OchChainLogManager.writeChainLogAutopilot("底盘收到启动自驾的ack",params.toString(),false) } /** @@ -156,6 +158,7 @@ object OchAutopilotAnalytics { mStartAutopilotParams[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP OchChainLogManager.addCommonParams(mStartAutopilotParams) MogoAnalyticUtils.track(mStartAutopilotKey, mStartAutopilotParams) + OchChainLogManager.writeChainLogAutopilot("启动自驾失败",mStartAutopilotParams.toString(),false) clearStartAutopilotParams() //清空参数数据,防止误传 } @@ -200,6 +203,7 @@ object OchAutopilotAnalytics { mStartAutopilotParams[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP OchChainLogManager.addCommonParams(mStartAutopilotParams) MogoAnalyticUtils.track(mStartAutopilotKey, mStartAutopilotParams) + OchChainLogManager.writeChainLogAutopilot("启动自驾成功",mStartAutopilotParams.toString(),false) clearStartAutopilotParams() //清空参数数据,防止误传 } else { mStartAutopilotParams[EVENT_PARAM_ENV_ONLINE] = DebugConfig.getNetMode() == DebugConfig.NET_MODE_RELEASE @@ -251,6 +255,7 @@ object OchAutopilotAnalytics { params[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP OchChainLogManager.addCommonParams(mStartAutopilotParams) MogoAnalyticUtils.track(getEventKeyApUnableStartReason(), params) + OchChainLogManager.writeChainLogAutopilot("触发\"无法开启自驾已知异常\"埋点",params.toString(),false) } /** @@ -263,6 +268,7 @@ object OchAutopilotAnalytics { params[EVENT_PARAM_AUTOPILOTANALYTICS_GROUP] = EVENT_PARAM_AUTOPILOTANALYTICS_GROUP OchChainLogManager.addCommonParams(mStartAutopilotParams) MogoAnalyticUtils.track(getEventKeyClickStartAutopilot(), params) + OchChainLogManager.writeChainLogAutopilot("用户点击启动自驾的时间",params.toString(),false) } /** diff --git a/OCH/common/common/src/main/java/com/mogo/och/common/module/manager/logchainanalytic/OchChainLogManager.kt b/OCH/common/common/src/main/java/com/mogo/och/common/module/manager/logchainanalytic/OchChainLogManager.kt index 9d836d77a2..d9a9e0bc82 100644 --- a/OCH/common/common/src/main/java/com/mogo/och/common/module/manager/logchainanalytic/OchChainLogManager.kt +++ b/OCH/common/common/src/main/java/com/mogo/och/common/module/manager/logchainanalytic/OchChainLogManager.kt @@ -124,8 +124,8 @@ object OchChainLogManager { fun writeChainLogScanner(title: String, changeInfo: String) { writeChainLog(title, changeInfo, true, EVENT_KEY_INFO_SCANNER) } - fun writeChainLogAutopilot(title: String, changeInfo: String) { - writeChainLog(title, changeInfo, true, EVENT_KEY_INFO_AUTOPILOT) + fun writeChainLogAutopilot(title: String, changeInfo: String,upload:Boolean = true) { + writeChainLog(title, changeInfo, upload, EVENT_KEY_INFO_AUTOPILOT) } fun writeChainLogInit(title: String, info: String) {