fixed bug

This commit is contained in:
lixiaopeng
2022-03-25 20:39:50 +08:00
parent 06e0ed2d69
commit 18c720152a
3 changed files with 8 additions and 18 deletions

View File

@@ -534,7 +534,7 @@ class MogoPrivateObuManager private constructor() {
//预警信息,预警类型 threat_level 2、3
info.threat_info?.let {
//预警方位
val direction = getMessageDirection(info.ext_info.target_classification)
val direction = getMessageDirection(if (info.ext_info != null) info.ext_info.target_classification else -1)
//处理预警类型
val appId = info.threat_info.app_id
val level = info.threat_info.threat_level