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) {