[2.15.0][opt]兼容V2N新旧链路
This commit is contained in:
@@ -1,7 +1,9 @@
|
||||
package com.mogo.eagle.core.function.call.autopilot
|
||||
|
||||
import com.mogo.eagle.core.data.config.FunctionBuildConfig
|
||||
import com.mogo.eagle.core.function.api.autopilot.IMoGoV2XListener
|
||||
import com.mogo.eagle.core.function.call.base.CallerBase
|
||||
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
|
||||
import mogo.v2x.MogoV2X
|
||||
|
||||
/**
|
||||
@@ -17,7 +19,9 @@ object CallerV2XListenerManager : CallerBase<IMoGoV2XListener>() {
|
||||
|
||||
override fun doSomeAfterAddListener(tag: String, listener: IMoGoV2XListener) {
|
||||
if (eventCountTmp >= 0) {
|
||||
listener.onV2nGlobalPathEvents(eventCountTmp, constructTmp, triangleTmp, congestionTmp, parkingViolationTmp)
|
||||
if (AppIdentityModeUtils.isTaxi(FunctionBuildConfig.appIdentityMode) && FunctionBuildConfig.isNewV2NData) {
|
||||
listener.onV2nGlobalPathEvents(eventCountTmp, constructTmp, triangleTmp, congestionTmp, parkingViolationTmp)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -32,7 +36,9 @@ object CallerV2XListenerManager : CallerBase<IMoGoV2XListener>() {
|
||||
parkingViolationTmp = parkingViolation
|
||||
M_LISTENERS.forEach {
|
||||
val listener = it.value
|
||||
listener.onV2nGlobalPathEvents(eventCount, construct, triangle, congestion, parkingViolation)
|
||||
if (AppIdentityModeUtils.isTaxi(FunctionBuildConfig.appIdentityMode) && FunctionBuildConfig.isNewV2NData) {
|
||||
listener.onV2nGlobalPathEvents(eventCount, construct, triangle, congestion, parkingViolation)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user