[fix]
[offlin]
[led fix]
This commit is contained in:
yangyakun
2024-12-31 18:23:14 +08:00
parent decb2f1112
commit d1e57cb610
2 changed files with 10 additions and 1 deletions

View File

@@ -313,6 +313,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?.startTime ?: System.currentTimeMillis(),

View File

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