diff --git a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt index e7cfcaa6dd..5381c2bbf8 100644 --- a/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt +++ b/core/function-impl/mogo-core-function-obu-mogo/src/main/java/com/mogo/eagle/core/function/obu/mogo/MogoPrivateObuManager.kt @@ -21,6 +21,7 @@ import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant.Companion.M_ import com.mogo.eagle.core.utilcode.mogo.storage.SharedPrefsMgr import com.mogo.module.common.drawer.TrafficMarkerDrawer import com.mogo.module.common.enums.EventTypeEnum +import com.mogo.module.common.enums.EventTypeHelper import com.mogo.service.IMogoServiceApis import com.zhidao.support.obu.MogoObuManager import com.zhidao.support.obu.OnMogoObuListener @@ -771,7 +772,12 @@ class MogoPrivateObuManager private constructor() { var changeVisualAngle = false when (appId.toString()) { // 变道预警,注意左后车辆/注意右后车辆 + EventTypeEnum.TYPE_USECASE_ID_LCW.poiType -> { + EventTypeHelper.getLCW(direction){ alert, tts -> + alertContent = alert + ttsContent = tts + } alertContent = EventTypeEnum.getWarningContent(appId.toString()) ttsContent = EventTypeEnum.getWarningTts(appId.toString()) if ( diff --git a/modules/mogo-module-common/src/main/java/com/mogo/module/common/enums/EventTypeHelper.kt b/modules/mogo-module-common/src/main/java/com/mogo/module/common/enums/EventTypeHelper.kt index 69ea587db8..9422202082 100644 --- a/modules/mogo-module-common/src/main/java/com/mogo/module/common/enums/EventTypeHelper.kt +++ b/modules/mogo-module-common/src/main/java/com/mogo/module/common/enums/EventTypeHelper.kt @@ -10,7 +10,7 @@ class EventTypeHelper { fun getLCW( direction: WarningDirectionEnum, - data: ((alertContent: String, ttsContent: String) -> Unit) + data: ((alert: String, tts: String) -> Unit) ) { when { direction.isLeft() -> { @@ -36,7 +36,7 @@ class EventTypeHelper { fun getCLW( direction: WarningDirectionEnum, - data: ((alertContent: String, ttsContent: String) -> Unit) + data: ((alert: String, tts: String) -> Unit) ){ data.invoke(EventTypeEnum.getWarningContent(EventTypeEnum.TYPE_USECASE_ID_CLW.poiType + direction.desc) ,EventTypeEnum.getWarningContent(EventTypeEnum.TYPE_USECASE_ID_CLW.poiType + direction.desc))