[6.8.4]
[fix] [bus、shuttle、Scheduled] [led end station]
This commit is contained in:
@@ -320,6 +320,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(),
|
||||
|
||||
@@ -111,7 +111,7 @@ object ThirdDeviceData {
|
||||
lineInfo.lineName,
|
||||
start.name,
|
||||
end.name,
|
||||
LineModel.isLastStation() == true
|
||||
LineModel.isLastStation(end)
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user