diff --git a/api/simulation.go b/api/simulation.go index 91c3bf5..01c1282 100644 --- a/api/simulation.go +++ b/api/simulation.go @@ -199,7 +199,7 @@ func addTrain(c *gin.Context) { HeadOffset: req.HeadOffset, DevicePort: req.DevicePort, RunDirection: req.RunDirection, - TrainLength: int64(service.CalcTrainLenght(req.TrainModelId, req.CarriageNum)), + //TrainLength: int64(service.CalcTrainLenght(req.TrainModelId, req.CarriageNum)), } memory.AddTrainState(simulation, rsp) c.JSON(http.StatusOK, &rsp) diff --git a/config/bj_local.yml b/config/bj_local.yml index 2ee68fa..f02fa0a 100644 --- a/config/bj_local.yml +++ b/config/bj_local.yml @@ -13,7 +13,7 @@ dynamics: httpPort: 7800 # VOBC vobc: - ip: 10.60.1.52 + ip: 10.60.1.59 localPort: 10000 remotePort: 4000 diff --git a/config/dev.yml b/config/dev.yml index e91e2e0..96ab6da 100644 --- a/config/dev.yml +++ b/config/dev.yml @@ -13,7 +13,7 @@ dynamics: httpPort: 7800 # VOBC vobc: - ip: 10.60.1.52 + ip: 10.60.1.59 localPort: 10000 remotePort: 4000 diff --git a/config/test_local.yml b/config/test_local.yml index 22eb294..ad41971 100644 --- a/config/test_local.yml +++ b/config/test_local.yml @@ -13,7 +13,7 @@ dynamics: httpPort: 7800 # VOBC vobc: - ip: 10.60.1.52 + ip: 10.60.1.59 localPort: 10000 remotePort: 4000