[2.15.0]code opt of roma and add trace
This commit is contained in:
@@ -19,7 +19,6 @@ import com.mogo.eagle.core.function.call.map.CallerMapUIServiceManager
|
||||
import com.mogo.eagle.core.function.call.map.CallerVisualAngleManager.updateLongSightLevel
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicListenerManager
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager.sendMsgToAllClients
|
||||
import com.mogo.eagle.core.function.call.telematic.CallerTelematicManager.sendMsgToServer
|
||||
import com.mogo.eagle.core.function.utils.MapBizTrace
|
||||
import com.mogo.eagle.core.utilcode.mogo.AppIdentityModeUtils
|
||||
@@ -96,22 +95,12 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener, IMogo
|
||||
|
||||
override fun trigger(romaStatus: Boolean) {
|
||||
MapBizTrace.log(TAG, "trigger")
|
||||
// 司机屏发送事件给乘客屏
|
||||
if (AppIdentityModeUtils.isDriver(FunctionBuildConfig.appIdentityMode)) {
|
||||
if (romaStatus) {
|
||||
sendMsgToAllClients(TelematicConstant.OPEN_ROMA_STATUS, "0".toByteArray())
|
||||
} else {
|
||||
sendMsgToAllClients(TelematicConstant.OPEN_ROMA_STATUS, "1".toByteArray())
|
||||
}
|
||||
}
|
||||
// 乘客屏单独控制漫游
|
||||
if (AppIdentityModeUtils.isPassenger(FunctionBuildConfig.appIdentityMode)) {
|
||||
if (romaStatus) {
|
||||
// 开启roma,当前非漫游,开启
|
||||
openRoma()
|
||||
} else {
|
||||
closeRoma()
|
||||
}
|
||||
if (romaStatus) {
|
||||
// 开启roma,当前非漫游,开启
|
||||
openRoma()
|
||||
} else {
|
||||
closeRoma()
|
||||
}
|
||||
}
|
||||
|
||||
@@ -228,6 +217,7 @@ class AiCloudIdentifyDataManager : IMogoMapListener, IReceivedMsgListener, IMogo
|
||||
}
|
||||
|
||||
private fun updateRomaStyle(auto: Boolean, route: String? = null) {
|
||||
MapBizTrace.log(TAG, "updateRomaStyle auto status:$auto, route:$route")
|
||||
CallerMapUIServiceManager.getMapUIController()?.setRoamTrajectory(route)
|
||||
if (auto) {
|
||||
FunctionBuildConfig.romaModeStyle = 0
|
||||
|
||||
Reference in New Issue
Block a user