From 2dcd4958d25c2b951817e26471b4c00f8ca276ad Mon Sep 17 00:00:00 2001 From: wangmingjun Date: Wed, 29 May 2024 15:03:27 +0800 Subject: [PATCH] =?UTF-8?q?[6.4.4]=20Bus=20B1=E4=B9=98=E5=AE=A2=E5=B1=8F?= =?UTF-8?q?=E5=BC=B1=E7=BD=91=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../och/bus/passenger/model/BusPassengerModel.kt | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/OCH/bus/passenger/src/main/java/jinlv/com/mogo/och/bus/passenger/model/BusPassengerModel.kt b/OCH/bus/passenger/src/main/java/jinlv/com/mogo/och/bus/passenger/model/BusPassengerModel.kt index 89218afd2a..77a31effcb 100644 --- a/OCH/bus/passenger/src/main/java/jinlv/com/mogo/och/bus/passenger/model/BusPassengerModel.kt +++ b/OCH/bus/passenger/src/main/java/jinlv/com/mogo/och/bus/passenger/model/BusPassengerModel.kt @@ -9,9 +9,6 @@ import com.amap.api.maps.model.LatLng import com.mogo.aicloud.services.socket.MogoAiCloudSocketManager import com.mogo.commons.module.intent.IMogoIntentListener import com.mogo.commons.module.intent.IntentManager -import com.mogo.commons.module.status.IMogoStatusChangedListener -import com.mogo.commons.module.status.MogoStatusManager -import com.mogo.commons.module.status.StatusDescriptor import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters.AutoPilotLine import com.mogo.eagle.core.data.autopilot.AutopilotControlParameters.AutoPilotLonLat @@ -174,7 +171,17 @@ object BusPassengerModel { d(M_BUS_P + TAG, "order = queryDriverSiteByCoordinate = not update") return } - routesResult = data.result + + if (routesResult != null && + routesResult!!.writeVersion < data.result.writeVersion + ) { + routesResult = data.result + } + + if (routesResult == null) { + routesResult = data.result + } + updatePassengerRouteInfo(data.result) }