src/main/java/com/zy/core/thread/BarcodeThread.java
@@ -41,12 +41,15 @@ // write("T".getBytes(), "T".length()); byte[] read = read(11, 200); if (null != read) { barcode = new String(read); String s = new String(read); if (!Cools.isEmpty(s)) { barcode = new String(read); } } Thread.sleep(100); } catch (SocketTimeoutException ignore) { } catch (Exception e) { e.printStackTrace(); // e.printStackTrace(); } } }