[6.9.0]
[fix] [taxi_p] [错误包裹]
This commit is contained in:
@@ -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&¤tOCHOrder!!.orderEndSite!=null) {
|
||||
setStation()
|
||||
}
|
||||
}
|
||||
OchChainLogManager.writeChainLog("exception",e.toString())
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
private fun clearStation() {
|
||||
|
||||
Reference in New Issue
Block a user