From 26285c77c6f627edd655ef9f1e9466662333e5f8 Mon Sep 17 00:00:00 2001 From: xuxinchao Date: Tue, 9 May 2023 15:22:14 +0800 Subject: [PATCH] =?UTF-8?q?[dev=5Fminibus-d=5F230425=5F3.2.0]fix=E4=BA=91?= =?UTF-8?q?=E8=B0=83=E5=BA=A6=E7=A9=BA=E6=8C=87=E9=92=88=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../biz/dispatch/DispatchAutoPilotManager.kt | 44 +++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/dispatch/DispatchAutoPilotManager.kt b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/dispatch/DispatchAutoPilotManager.kt index 2a8ff7b932..f19a08dcea 100644 --- a/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/dispatch/DispatchAutoPilotManager.kt +++ b/core/function-impl/mogo-core-function-biz/src/main/java/com/mogo/eagle/function/biz/dispatch/DispatchAutoPilotManager.kt @@ -185,6 +185,50 @@ class DispatchAutoPilotManager private constructor() : ) } } + if(it.trajUrl == null){ + ToastUtils.showShort("trajUrl数据为空") + return + } + if(it.trajMd5 == null){ + ToastUtils.showShort("trajMd5数据为空") + return + } + if(it.stopUrl == null){ + ToastUtils.showShort("stopUrl数据为空") + return + } + if(it.stopMd5 == null){ + ToastUtils.showShort("stopMd5数据为空") + return + } + if(it.vehicleModel == null){ + ToastUtils.showShort("vehicleModel数据为空") + return + } + if(it.trajUrl_dpqp == null){ + ToastUtils.showShort("trajUrl_dpqp数据为空") + return + } + if(it.trajMd5_dpqp == null){ + ToastUtils.showShort("trajMd5_dpqp数据为空") + return + } + if(it.stopUrl_dpqp == null){ + ToastUtils.showShort("stopUrl_dpqp数据为空") + return + } + if(it.lineName == null){ + ToastUtils.showShort("lineName数据为空") + return + } + if(it.startLocAddress == null){ + ToastUtils.showShort("startLocAddress数据为空") + return + } + if(it.endLocAddress == null){ + ToastUtils.showShort("endLocAddress数据为空") + return + } val currentAutoPilotLine = AutopilotControlParameters.AutoPilotLine(it.lineId.toLong(),it.trajUrl,it.trajMd5, it.stopUrl,it.stopMd5,it.timestamp,it.vehicleModel,it.trajUrl_dpqp,it.trajMd5_dpqp,it.stopUrl_dpqp, it.stopMd5_dpqp,it.timestamp_dpqp)