Merge remote-tracking branch 'origin/dev/dev_eagle_wuhan_sikua_obu' into dev/dev_eagle_wuhan_sikua_obu

This commit is contained in:
董宏宇
2021-09-30 10:27:26 +08:00

View File

@@ -261,10 +261,16 @@ class MogoPrivateObuManager private constructor() {
// 前方拥堵提醒
EventTypeEnum.TYPE_USECASE_ID_TJW.poiType -> {
alertContent = EventTypeEnum.getWarningContent(appId)
ttsContent = String.format(
EventTypeEnum.getWarningTts(appId),
info.threat_info.distance.toInt()
)
if (info.threat_info != null) {
if (info.threat_info.distance.toInt() != 0) {
ttsContent = String.format(
EventTypeEnum.getWarningTts(appId),
info.threat_info.distance.toInt()
)
} else {
ttsContent = "前方道路拥堵,请减速慢行"
}
}
}
}