|  |  | 
 |  |  | 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; | 
 |  |  | 
 |  |  | //            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; | 
 |  |  | 
 |  |  |         } | 
 |  |  |         socket = null; | 
 |  |  |         } catch (IOException e) { | 
 |  |  |             log.error("SocketClient close Exception:" + e.getMessage()); | 
 |  |  |             News.error("Scale"+" - 2"+" - SocketClient close Exception:" + e.getMessage()); | 
 |  |  |         } | 
 |  |  |     } | 
 |  |  |  |