管理员开门
This commit is contained in:
@@ -302,6 +302,7 @@ public class ServerMessageHandlerAdapter implements MessageService {
|
||||
*/
|
||||
@Override
|
||||
public void adminEnter(String deviceName, Integer venueId) {
|
||||
// 暂不应该支持
|
||||
Channel channel = getCurrentChannel(deviceName, venueId);
|
||||
if (channel == null) {
|
||||
throw new ServiceException("设备离线!请检查连接");
|
||||
@@ -320,7 +321,7 @@ public class ServerMessageHandlerAdapter implements MessageService {
|
||||
if (channel == null) {
|
||||
throw new ServiceException("设备离线!请检查连接");
|
||||
}
|
||||
logger.info("管理员入场");
|
||||
logger.info("管理员开门" + deviceName + "$" + venueId);
|
||||
ServerMessageUtils.INSTANCE.sendMsg(channel,new VenueMessage(MessageType.OUT_DOOR,"OK"));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user