[8.2.2][opt]优化多次到站的判断

This commit is contained in:
chenfufeng
2025-09-23 14:52:29 +08:00
parent 885cd907b3
commit 3614889962

View File

@@ -460,7 +460,7 @@ object OrderModel {
//此处比对 自驾告诉的到站站点坐标和本地应到站站点坐标, 一致时才能到站
LineManager.getStations { start, end ->
if (isArrivedStation) return@getStations
if (isArrivedStation || end.siteId == LineManager.lastArrivedSiteId) return@getStations
OchChainLogManager.writeChainLog("触发进站", type)
LineManager.lastArrivedSiteId = end.siteId