src/main/java/com/zy/core/thread/BarcodeThread.java
@@ -65,7 +65,7 @@ connect(); while (true) { try { byte[] read = read(8, 200); byte[] read = read(50, 200); if (null != read) { String s = new String(read); if (!Cools.isEmpty(s)) { @@ -79,10 +79,14 @@ } OutputQueue.BARCODE.offer(jsonObject); } }else{ barcode = ""; } Thread.sleep(50); } catch (SocketTimeoutException ignore) { // barcode=""; } catch (Exception e) { barcode=""; // e.printStackTrace(); } }