From 542f97a17e23891ef7a59f4890ad067cae53cf1c Mon Sep 17 00:00:00 2001 From: zhanghao <774378400@qq.com> Date: Thu, 2 Jul 2026 16:26:02 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=94=B9=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E5=8F=82=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server/index.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/server/index.js b/server/index.js index cdc0429..bcbbee8 100644 --- a/server/index.js +++ b/server/index.js @@ -15,7 +15,7 @@ app.use(express.json()) app.post('/api/agv/getCurrentMapName', async (req, res) => { const request = { header: { - device_id: req.body.device_id || 'agv_src1100' + device_id: req.body.deviceId || 'agv_src1100' } }; @@ -49,7 +49,7 @@ app.post('/api/agv/getCurrentMap', async (req, res) => { const grpcClient = createAGVGrpcClient(req.body.ip) const request = { header: { - device_id: req.body.device_id || 'agv_src1100' + device_id: req.body.deviceId || 'agv_src1100' }, data: { map_name: req.body.mapName @@ -83,7 +83,7 @@ app.post('/api/agv/getCurrentMap', async (req, res) => { app.post('/api/agv/getRobotState', async (req, res) => { const request = { header: { - device_id: req.body.device_id || 'agv_src1100' + device_id: req.body.deviceId || 'agv_src1100' } }; @@ -144,7 +144,7 @@ app.post('/api/agv/moveRobot', async (req, res) => { const grpcClient = createAGVGrpcClient(req.body.ip) const request = { header: { - device_id: req.body.device_id || 'agv_src1100' + device_id: req.body.deviceId || 'agv_src1100' }, data: { vx: req.body.vx, @@ -185,7 +185,7 @@ app.post('/api/agv/stopRobot', async (req, res) => { const grpcClient = createAGVGrpcClient(req.body.ip) const request = { header: { - device_id: req.body.device_id || 'agv_src1100' + device_id: req.body.deviceId || 'agv_src1100' } };