From c3d48fc03c23df8145078a624ef45fe5aadd236a Mon Sep 17 00:00:00 2001 From: weizhihong Date: Thu, 24 Aug 2023 13:11:18 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E4=BF=AE=E6=94=B9=E5=8D=8A=E5=AE=9E?= =?UTF-8?q?=E7=89=A9=E4=BB=BF=E7=9C=9F=E7=B3=BB=E7=BB=9FIP=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E3=80=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/simulation.go | 2 +- config/bj_local.yml | 2 +- config/dev.yml | 2 +- config/test_local.yml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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