[6.7.0]
[fix] [添加启动条件]
This commit is contained in:
@@ -400,6 +400,18 @@ object LineManager : CallerBase<ILineCallback>() {
|
||||
// 启动自动驾驶
|
||||
fun startAutopilot() {
|
||||
|
||||
if(startStation==null|| endStation==null){
|
||||
ToastUtils.showShort("未设置起始或终点站点")
|
||||
return
|
||||
}
|
||||
|
||||
startStation?.let {
|
||||
if(!it.isLeaving){
|
||||
ToastUtils.showShort("请滑动出发后再启动自驾")
|
||||
return
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 存在Session
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user