.. wait to test of fun
This commit is contained in:
@@ -59,9 +59,10 @@ object TrackerSourceHelper {
|
||||
}
|
||||
|
||||
// pnc预警
|
||||
val pncColor = WarningHelper.getPncColor(data.uuid.toString())
|
||||
if (pncColor.isNotBlank()) {
|
||||
color = pncColor
|
||||
WarningHelper.getPncColor(data.uuid.toString()){
|
||||
if (it.isNotBlank()) {
|
||||
color = it
|
||||
}
|
||||
}
|
||||
return color
|
||||
}
|
||||
|
||||
@@ -3,10 +3,14 @@ package com.mogo.eagle.core.function.map.identify
|
||||
import android.annotation.SuppressLint
|
||||
import android.util.Log
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig
|
||||
import com.mogo.eagle.core.data.deva.bizconfig.FuncBizConfig
|
||||
import com.mogo.eagle.core.data.deva.bizconfig.FuncBizConfig.Companion.BIZ_PNC_WARNING
|
||||
import com.mogo.eagle.core.data.deva.bizconfig.FuncBizConfig.Companion.FOUNDATION
|
||||
import com.mogo.eagle.core.data.traffic.TrafficData
|
||||
import com.mogo.eagle.core.data.traffic.threatLevelColor
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager.getAutoPilotStatusInfo
|
||||
import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager.getCurWgs84SatelliteTime
|
||||
import com.zhjt.service_biz.BizConfig
|
||||
import mogo.telematics.pad.MessagePad
|
||||
import mogo.telematics.pad.MessagePad.PlanningObject
|
||||
import java.util.concurrent.ConcurrentHashMap
|
||||
@@ -111,30 +115,31 @@ object WarningHelper {
|
||||
return ""
|
||||
}
|
||||
|
||||
fun getPncColor(uuid: String): String {
|
||||
@BizConfig(FOUNDATION,"",BIZ_PNC_WARNING)
|
||||
fun getPncColor(uuid: String, color:(String) -> Unit) {
|
||||
if (FunctionBuildConfig.isBeautyMode) {
|
||||
// 判断物体是否有预警信息
|
||||
if (pncWarningBeautyTrafficData.containsKey(uuid)) {
|
||||
val planningTrack = pncWarningBeautyTrafficData[uuid]
|
||||
if (planningTrack != null && !timeOut(planningTrack.time)) {
|
||||
Log.i("EmArrow0926","pnc color uuid : $uuid")
|
||||
return planningTrack.color
|
||||
color.invoke(planningTrack.color)
|
||||
} else {
|
||||
pncWarningBeautyTrafficData.remove(uuid)
|
||||
}
|
||||
}
|
||||
return ""
|
||||
return color.invoke("")
|
||||
} else {
|
||||
// 判断物体是否有预警信息
|
||||
if (pncWarningOriginTrafficData.containsKey(uuid)) {
|
||||
val planningTrack = pncWarningOriginTrafficData[uuid]
|
||||
if (planningTrack != null && !timeOut(planningTrack.time)) {
|
||||
return planningTrack.color
|
||||
color.invoke(planningTrack.color)
|
||||
} else {
|
||||
pncWarningOriginTrafficData.remove(uuid)
|
||||
}
|
||||
}
|
||||
return ""
|
||||
return color.invoke("")
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user