From e08b557c1e39eefd3822df52d2acc58435b21e16 Mon Sep 17 00:00:00 2001 From: zhangyong <517047165@qq.com> Date: 星期五, 15 九月 2023 08:31:58 +0800 Subject: [PATCH] 修复string.split(".")不能分割的bug --- springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java b/springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java index 50ab8a9..b43820c 100644 --- a/springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java +++ b/springboot-vue3/src/main/java/com/example/springboot/component/Plcaction.java @@ -21,7 +21,7 @@ // JSONObject jsonObject = new JSONObject(); // jsonObject.append("params", new short[]{1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0}); - List<Boolean> paramlist = S7control.getinstance().ReadBits("DB2.0.0 ", 26); + List<Boolean> paramlist = S7control.getinstance().ReadBits("DB2.0.0", 26); // Boolean[] values = {true, true,true, true,true, true,true, true,true, true,true, true,true, true,true, true,true, true,true, true,true, true,true, true,false, true}; // List<Boolean> paramlist = new ArrayList<>(Arrays.asList(values)); if (paramlist == null) { -- Gitblit v1.8.0