[6.2.0]修改车内标牌消息提示策略
This commit is contained in:
@@ -310,6 +310,19 @@ class MogoObuDcCombineManager private constructor() : IMoGoObuWarningRsiListener
|
||||
saveObuToDcData(appId, alertContent, ttsContent,CommunicationType.V2I)
|
||||
showWarning(appId, alertContent, ttsContent, direction)
|
||||
}
|
||||
if (alertContent.isEmpty() || ttsContent.isEmpty()) {
|
||||
return
|
||||
}
|
||||
//大于10m,才提示rsi,超速不限制
|
||||
if (appId == "6666") {
|
||||
saveObuToDcData(appId, alertContent, ttsContent,CommunicationType.V2I)
|
||||
showWarning(appId, alertContent, ttsContent, direction)
|
||||
} else {
|
||||
if (Math.round(rsiWarningData.warningMsgList[0].distance) > 10) {
|
||||
saveObuToDcData(appId, alertContent, ttsContent,CommunicationType.V2I)
|
||||
showWarning(appId, alertContent, ttsContent, direction)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 删除
|
||||
|
||||
@@ -599,6 +599,20 @@ class MogoPrivateObuNewManager private constructor() : OnUpgradeListener {
|
||||
saveObuData(appId, alertContent, ttsContent,CommunicationType.V2I)
|
||||
showWarning(appId, alertContent, ttsContent, direction)
|
||||
}
|
||||
//不显示弹框,语音提示,数据在消息盒子里面展示,此处不在处理弹框
|
||||
if (alertContent.isEmpty() || ttsContent.isEmpty()) {
|
||||
return
|
||||
}
|
||||
//大于10m,才提示rsi。超速不限制
|
||||
if (appId == "6666") {
|
||||
saveObuData(appId, alertContent, ttsContent,CommunicationType.V2I)
|
||||
showWarning(appId, alertContent, ttsContent, direction)
|
||||
} else {
|
||||
if (Math.round(data.warningMsgList[0].distance) > 10) {
|
||||
saveObuData(appId, alertContent, ttsContent,CommunicationType.V2I)
|
||||
showWarning(appId, alertContent, ttsContent, direction)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
MogoObuShowConstants.STATUS.DELETE -> { // 删除
|
||||
|
||||
Reference in New Issue
Block a user