From c42614978ff12013a1eabebd0289b27169a5784f Mon Sep 17 00:00:00 2001 From: liurunyu <lry9898@163.com> Date: 星期二, 06 五月 2025 17:25:56 +0800 Subject: [PATCH] 1、实现万功能token(0000-0000-1234-9876-5); 2、web端单独实现命令结果等待器,并相应修改相关部分; 3、web端实现透传命令; 4、修改一些不当注释; 5、优化一些代码。 --- pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java | 9 ++++++--- 1 files changed, 6 insertions(+), 3 deletions(-) diff --git a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java index 181012d..2a405c4 100644 --- a/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java +++ b/pipIrr-platform/pipIrr-mw/pipIrr-mw-rtu/src/main/java/com/dy/rtuMw/Server.java @@ -3,6 +3,7 @@ import java.util.ArrayList; import java.util.List; +import com.dy.common.util.ConfigProperties; import com.dy.rtuMw.server.*; import com.dy.rtuMw.server.msCenter.MsCenterConfigVo; import com.dy.rtuMw.server.msCenter.MsCenterUnit; @@ -42,6 +43,7 @@ private Document doc = null ; private boolean showStartInfo = false ; + private String orgTag ; private String RmiSvUrl ; private String TcpSvUrl ; @Value("${server.port}") @@ -85,7 +87,7 @@ boolean running = false ; long start = System.currentTimeMillis() ; try { - //ConfigProperties.init(this.getClass().getResourceAsStream("/config/config.properties"), false); + ConfigProperties.init(this.getClass().getResourceAsStream("/config.properties"), false); this.conf = new ConfigXml4Springboot() ; this.doc = this.conf.createDom(this.resourceLoader, "config.xml") ; @@ -115,7 +117,7 @@ System.out.println("@@@@@@@@@@@@@@@@@@@@@# #@@@@@@@@@@@@@@@@O") ; System.out.println("@@@@@@@@@@@@@@@@@@@@@@@ &@@@@@@@@@@@@@@") ; System.out.println("@@@@@@$ $@@@@@@@@@& O@@@@@@@@@@@#") ; - System.out.println("@@@@@@$ @@@@@@@@@ @@@@@@@@@& " + svName + "RtuMw 1.0.00" ) ; + System.out.println("@@@@@@$ @@@@@@@@@ @@@@@@@@@& " + this.orgTag + svName + "RtuMw 1.0.00" ) ; if(this.HttpSvPath != null && this.HttpSvPort != null){ System.out.println("@@@@@@$ O@@@@@@@@@ &@@@@@@@@ HttpSv [ip]:" + this.HttpSvPort + this.HttpSvPath) ; }else{ @@ -149,9 +151,10 @@ /////////////// //鍩烘湰閰嶇疆 ServerProperties.orgTag = this.conf.getSetAttrTxt(this.doc, "config.base", "orgTag", null, false, null) ; - if(ServerProperties.orgTag==null || ServerProperties.orgTag.trim().equals("")){ + if(ServerProperties.orgTag == null || ServerProperties.orgTag.trim().equals("")){ throw new Exception("鏈烘瀯tag涓嶈兘涓虹┖") ; } + this.orgTag = ServerProperties.orgTag ; ServerProperties.isLowPower = conf.getSetAttrBoolean(doc, "config.base", "isLowPower", null, null) ; if(ServerProperties.isLowPower == null){ ServerProperties.isLowPower = false ; -- Gitblit v1.8.0