[fix]
[taxi_p]
[错误包裹]
This commit is contained in:
yangyakun
2025-01-13 17:36:54 +08:00
parent a6e18b1e17
commit 1487e6a884

View File

@@ -449,19 +449,29 @@ object TaxiPassengerModel {
}
private fun setStation() {
if (currentOCHOrder != null && currentLineId != null) {
val startStation = MogoLocation()
startStation.longitude = currentOCHOrder!!.orderStartSite.gcjLon
startStation.latitude = currentOCHOrder!!.orderStartSite.gcjLat
val endStation = MogoLocation()
endStation.longitude = currentOCHOrder!!.orderEndSite.gcjLon
endStation.latitude = currentOCHOrder!!.orderEndSite.gcjLat
TrajectoryAndDistanceManager.setStationPoint(
startStation,
endStation,
currentLineId
)
try {
if (currentOCHOrder != null && currentLineId != null) {
val startStation = MogoLocation()
startStation.longitude = currentOCHOrder!!.orderStartSite.gcjLon
startStation.latitude = currentOCHOrder!!.orderStartSite.gcjLat
val endStation = MogoLocation()
endStation.longitude = currentOCHOrder!!.orderEndSite.gcjLon
endStation.latitude = currentOCHOrder!!.orderEndSite.gcjLat
TrajectoryAndDistanceManager.setStationPoint(
startStation,
endStation,
currentLineId
)
}
}catch (e:Exception){
RxUtils.createSubscribeOnOwnThread(10_000) {
if(currentOCHOrder!=null&&currentOCHOrder!!.orderEndSite!=null) {
setStation()
}
}
OchChainLogManager.writeChainLog("exception",e.toString())
}
}
private fun clearStation() {