From abec893d92475b0671ba82cb885d3dacd9ee4b8f Mon Sep 17 00:00:00 2001 From: wangmingjun Date: Mon, 21 Aug 2023 20:41:33 +0800 Subject: [PATCH] =?UTF-8?q?[6.0.0]=201=E3=80=81=E6=8B=89=E5=8F=96=E4=B8=8B?= =?UTF-8?q?=E4=B8=80=E4=B8=AA=E4=BB=BB=E5=8A=A1=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/mogo/och/taxi/model/TaxiUnmannedViewModel.kt | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/OCH/taxi/mogo-och-taxi-unmanned/src/main/java/com/mogo/och/taxi/model/TaxiUnmannedViewModel.kt b/OCH/taxi/mogo-och-taxi-unmanned/src/main/java/com/mogo/och/taxi/model/TaxiUnmannedViewModel.kt index ed01880af2..f9bf322b65 100644 --- a/OCH/taxi/mogo-och-taxi-unmanned/src/main/java/com/mogo/och/taxi/model/TaxiUnmannedViewModel.kt +++ b/OCH/taxi/mogo-och-taxi-unmanned/src/main/java/com/mogo/och/taxi/model/TaxiUnmannedViewModel.kt @@ -345,11 +345,10 @@ class TaxiUnmannedViewModel : BaseViewModel(){ if (result.taskType <= TaskTypeEnum.ToOrderStartTask.code && result.currentStatus == TaskStatusEnum.GetTask.code){//自动去启动自驾 if (result.order != null && result.order!!.orderStatus < TaxiOrderStatusEnum.ArriveAtStart.code){ - d(TAG, "queryCurrentTaskOnce1 = ArriveAtStart not to autoStartDriving" ) + d(TAG, "queryCurrentTaskOnce1 = autoStartDriving" ) + TaxiModel.autoStartDriving() return } - d(TAG, "queryCurrentTaskOnce1 = autoStartDriving" ) - TaxiModel.autoStartDriving() } } } @@ -434,9 +433,7 @@ class TaxiUnmannedViewModel : BaseViewModel(){ private fun startPrepareTask30S(siteId: Long) { UiThreadHandler.postDelayed({ - if (isLogin() && isOpeningOrderStatus()){ - pullTask(siteId) - } + pullTask(siteId) }, TaxiUnmannedConst.TIMER_PREPARE_TASK_INTERVAL) }