From 22c2f1fbae0e8481cb2eb4dac14c55e7536ddd1a Mon Sep 17 00:00:00 2001 From: gengby <858962040@qq.com> Date: Fri, 26 May 2023 15:55:27 +0800 Subject: [PATCH] =?UTF-8?q?rev=20=E4=BF=AE=E6=94=B9=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=E6=A0=87=E8=AE=B0=E7=A9=BA=E6=8C=87=E9=92=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../StandardCoveyorControlWithScannerDeviceDriver.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java index 390a7ce..5a69494 100644 --- a/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java +++ b/acs/nladmin-system/src/main/java/org/nl/acs/device_driver/basedriver/standard_conveyor_control_with_scanner/StandardCoveyorControlWithScannerDeviceDriver.java @@ -655,10 +655,12 @@ public class StandardCoveyorControlWithScannerDeviceDriver extends AbstractOpcDe @Override public void setDeviceStatus(JSONObject data) { String requireSucess = data.getString("requireSucess"); - if (requireSucess.equals("1")){ - this.requireSucess = true; - } else if (requireSucess.equals("0")){ - this.requireSucess = false; + if (StrUtil.isNotEmpty(requireSucess)){ + if (requireSucess.equals("1")){ + this.requireSucess = true; + } else if (requireSucess.equals("0")){ + this.requireSucess = false; + } } } }