[8.2.2][opt]优化多次到站的判断
This commit is contained in:
@@ -460,7 +460,7 @@ object OrderModel {
|
|||||||
//此处比对 自驾告诉的到站站点坐标和本地应到站站点坐标, 一致时才能到站
|
//此处比对 自驾告诉的到站站点坐标和本地应到站站点坐标, 一致时才能到站
|
||||||
LineManager.getStations { start, end ->
|
LineManager.getStations { start, end ->
|
||||||
|
|
||||||
if (isArrivedStation) return@getStations
|
if (isArrivedStation || end.siteId == LineManager.lastArrivedSiteId) return@getStations
|
||||||
|
|
||||||
OchChainLogManager.writeChainLog("触发进站", type)
|
OchChainLogManager.writeChainLog("触发进站", type)
|
||||||
LineManager.lastArrivedSiteId = end.siteId
|
LineManager.lastArrivedSiteId = end.siteId
|
||||||
|
|||||||
Reference in New Issue
Block a user