From 43299dbcb6a6d2036d3beb4fa021026253113fa9 Mon Sep 17 00:00:00 2001 From: pangshenghao Date: Mon, 14 Aug 2023 12:48:06 +0800 Subject: [PATCH] fix --- .../basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java index 0a2aa15..9a494d0 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/agv/ndcone/AgvNdcOneDeviceDriver.java @@ -190,7 +190,7 @@ public class AgvNdcOneDeviceDriver extends AbstractDeviceDriver implements Devic req.add(map); HttpResponse httpResponse = acsToWmsService.feedAgvTaskStatus(req); if (ObjectUtil.isNotEmpty(httpResponse) && httpResponse.getStatus() == 200) { - JSONObject resp = JSONObject.parseObject(httpResponse.body()); + JSONObject resp = JSONObject.parseObject(httpResponse.body()).getJSONObject("data"); if (resp.getInteger("status") == 200) { start_height=resp.getInteger("start_height"); next_height=resp.getInteger("next_height");