From d8156c25a0af7841a91a6fe6ea5d114680672245 Mon Sep 17 00:00:00 2001
From: ZengTao <2773468879@qq.com>
Date: 星期一, 11 九月 2023 09:51:13 +0800
Subject: [PATCH] 修改遗漏错误

---
 springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
index b641602..4fd48c7 100644
--- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
+++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcsign.java
@@ -16,7 +16,9 @@
       }
 
       List<Boolean> plclist = S7control.getinstance().ReadBits("DB102.DBX0.0", 58);
+      if(plclist==null){
 
+      }else{
       JSONObject jsonObject = new JSONObject();
       // jsonObject3.append("sig",
       // new short[] { 0, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1,
@@ -30,5 +32,6 @@
       }
 
     }
+    }
   }
 }

--
Gitblit v1.8.0