|
@@ -144,7 +144,7 @@ public class DeJuRFIDService implements IService {
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- private static void close(RemoteLabHardware hardware) {
|
|
|
|
|
|
|
+ public static void close(RemoteLabHardware hardware) {
|
|
|
String ipAddress = hardware.getIpAddress();
|
|
String ipAddress = hardware.getIpAddress();
|
|
|
if (clientMap.containsKey(ipAddress)) {
|
|
if (clientMap.containsKey(ipAddress)) {
|
|
|
GClient client = clientMap.get(ipAddress);
|
|
GClient client = clientMap.get(ipAddress);
|
|
@@ -152,6 +152,8 @@ public class DeJuRFIDService implements IService {
|
|
|
MsgBaseStop msg = new MsgBaseStop();
|
|
MsgBaseStop msg = new MsgBaseStop();
|
|
|
// 停止读卡,空闲态
|
|
// 停止读卡,空闲态
|
|
|
client.sendSynMsg(msg);
|
|
client.sendSynMsg(msg);
|
|
|
|
|
+ String result = msg.getRtCode() == 0 ? "成功" : "失败";
|
|
|
|
|
+ log.info("客户端停止读卡{}", result);
|
|
|
client.close();
|
|
client.close();
|
|
|
clientMap.remove(ipAddress);
|
|
clientMap.remove(ipAddress);
|
|
|
}
|
|
}
|