From e7ca40ae370312a031bdd9aca5b7c65f1741c178 Mon Sep 17 00:00:00 2001 From: yangyakun Date: Mon, 18 Sep 2023 10:21:15 +0800 Subject: [PATCH] =?UTF-8?q?[6.1.0]=20[text-p]=20[docker=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E9=80=82=E9=85=8D]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ui/startautopilot/StartAutopilotViewModel.kt | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/OCH/taxi/unmanned-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/startautopilot/StartAutopilotViewModel.kt b/OCH/taxi/unmanned-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/startautopilot/StartAutopilotViewModel.kt index e35c1fd928..deef98392e 100644 --- a/OCH/taxi/unmanned-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/startautopilot/StartAutopilotViewModel.kt +++ b/OCH/taxi/unmanned-passenger/src/main/java/com/mogo/och/taxi/passenger/ui/startautopilot/StartAutopilotViewModel.kt @@ -2,8 +2,11 @@ package com.mogo.och.taxi.passenger.ui.startautopilot import androidx.lifecycle.ViewModel import com.mogo.commons.voice.AIAssist +import com.mogo.eagle.core.data.config.FunctionBuildConfig +import com.mogo.eagle.core.function.call.autopilot.CallerAutoPilotStatusListenerManager import com.mogo.eagle.core.utilcode.mogo.logger.CallerLogger import com.mogo.eagle.core.utilcode.mogo.logger.scene.SceneConstant +import com.mogo.eagle.core.utilcode.util.ParseVersionUtils import com.mogo.eagle.core.utilcode.util.ToastUtils import com.mogo.eagle.core.utilcode.util.UiThreadHandler import com.mogo.och.common.module.manager.devicemanage.TaxiDoorStateManager @@ -65,11 +68,14 @@ class StartAutopilotViewModel : ViewModel(), * 开启自动驾驶 */ fun startAutopilot() { - if(doorOpenState){ - VoiceNotice.showNotice("关紧车门后再出发吧!") - ToastUtils.showShort("关紧车门后再出发吧!") - viewCallback?.unableStartAutopilotByDoorState() - return + val num = ParseVersionUtils.parseVersion(true, CallerAutoPilotStatusListenerManager.getDockerVersion()) + if (num >= 30600) { + if(doorOpenState){ + VoiceNotice.showNotice("关紧车门后再出发吧!") + ToastUtils.showShort("关紧车门后再出发吧!") + viewCallback?.unableStartAutopilotByDoorState() + return + } } if (RxUtils.isNotDisposed(startCountDown)) { ToastUtils.showLong("启动中……")