[fix]
[bus、shuttle、Scheduled]
[led end station]
This commit is contained in:
yangyakun
2024-12-31 18:07:27 +08:00
parent dc26979748
commit 8b10cb6df1
2 changed files with 10 additions and 1 deletions

View File

@@ -304,6 +304,15 @@ object LineModel {
}
fun isLastStation(end: BusStationBean):Boolean{
return if (stationList.isNullOrEmpty()) {
false
}else{
val last = stationList?.last()
return last==end
}
}
fun getTaskTime():String {
return DateTimeUtil.formatLongToString(
currentTask?.taskStartTime?:System.currentTimeMillis(),

View File

@@ -111,7 +111,7 @@ object ThirdDeviceData {
lineInfo.lineName,
start.name,
end.name,
LineModel.isLastStation() == true
LineModel.isLastStation(end)
)
}
}