[driver passenger ] Bus司机屏路径上传条件

This commit is contained in:
wangmingjun
2022-04-25 19:30:22 +08:00
parent 497cb5c817
commit 90e29ab961

View File

@@ -228,7 +228,7 @@ public class BusOrderModel {
* 上报订单全路径规划数据
*/
public void updateOrderRoute() {
if (currentStationIndex >= stationList.size() && points.size() > 0){
if (!isGoingToNextStation || currentStationIndex >= stationList.size() || currentStationIndex-1 < 0 || points.size() == 0){
return;
}