自动化立体仓库 - WCS系统
#
zjj
2024-06-05 f8c8d0f2bedddddfb856a485441abbb50fa1ea6d
src/main/java/com/zy/core/thread/ScaleThread.java
@@ -1,6 +1,7 @@
package com.zy.core.thread;
import com.core.common.Cools;
import com.zy.common.utils.News;
import com.zy.core.Slave;
import com.zy.core.ThreadHandler;
import lombok.Data;
@@ -66,7 +67,7 @@
//            log.info("条码扫描仪连接成功 ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
        } catch (Exception e) {
            socket = null;
            log.error("条码扫描仪连接失败!!! ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
            News.error("Scale"+" - 1"+" - 条码扫描仪连接失败!!! ===>> [id:{}] [ip:{}] [port:{}]", slave.getId(), slave.getIp(), slave.getPort());
            return false;
        }
        return true;
@@ -89,7 +90,7 @@
        }
        socket = null;
        } catch (IOException e) {
            log.error("SocketClient close Exception:" + e.getMessage());
            News.error("Scale"+" - 2"+" - SocketClient close Exception:" + e.getMessage());
        }
    }