From d772a8c0b226e55dfc28fdfe6e41a2c491317ed8 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <xltys1995>
Date: 星期二, 01 九月 2020 15:54:46 +0800
Subject: [PATCH] #

---
 src/main/java/com/zy/core/thread/CrnThread.java |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/core/thread/CrnThread.java b/src/main/java/com/zy/core/thread/CrnThread.java
index f2cf3b3..e054bfd 100644
--- a/src/main/java/com/zy/core/thread/CrnThread.java
+++ b/src/main/java/com/zy/core/thread/CrnThread.java
@@ -164,7 +164,8 @@
                 }
 
             } else {
-                throw new CoolException("鍫嗗灈鏈簆lc鐘舵�佷俊鎭け璐�");
+                OutputQueue.CRN.offer(MessageFormat.format("銆恵0}銆憑1}鍫嗗灈鏈簆lc鐘舵�佷俊鎭け璐�",DateUtils.convert(new Date()), slave.getId()));
+                throw new CoolException(MessageFormat.format( "鍫嗗灈鏈簆lc鐘舵�佷俊鎭け璐� ===>> [id:{0}] [ip:{1}] [port:{2}]", slave.getId(), slave.getIp(), slave.getPort()));
             }
             /* 鏂规硶2 */
 //            crnProtocol.setMode(melsecMcNet.ReadInt16("D2231").Content);
@@ -270,7 +271,7 @@
 
     public CrnProtocol getCrnProtocol(){
         if (crnProtocol == null) {
-            readStatus();
+            throw new CoolException(slave.getId() + "鍙峰爢鍨涙満杩炴帴澶辫触");
         }
         return this.crnProtocol;
     }

--
Gitblit v1.9.1