[6.1.0] 设置轨迹计算站点逻辑处理

This commit is contained in:
wangmingjun
2023-09-25 19:48:21 +08:00
parent f822e76e70
commit 069231f5cd

View File

@@ -580,7 +580,6 @@ object TaxiTaskModel {
}
if (isArriveAtEndSite) {
updateLocalCalculateStation()
//取消自驾,D档位会溜车 map3.6.0 修改
cancelAutopilot()
}
@@ -797,9 +796,9 @@ object TaxiTaskModel {
}
fun updateLocalCalculateStation() {
if (mCurrentTaskWithOrder == null) return
if (mCurrentTaskWithOrder!!.startSite != null && mCurrentTaskWithOrder!!.endSite != null
&& mCurrentTaskWithOrder!!.currentStatus == TaskStatusEnum.StartTask.code
if (mCurrentTaskWithOrder != null &&
mCurrentTaskWithOrder?.startSite != null && mCurrentTaskWithOrder?.endSite != null
&& mCurrentTaskWithOrder?.currentStatus == TaskStatusEnum.StartTask.code
) {
d(TAG, "updateLocalCalculateStation start")
val curTaskAndOrder = getCurrentTaskWithOrder() ?: return