From c33bf822cce59667be80ba0bb45499498501d161 Mon Sep 17 00:00:00 2001 From: 648540858 <648540858@qq.com> Date: 星期四, 04 十一月 2021 15:56:24 +0800 Subject: [PATCH] 修复级联的通道查询以及设备信息查询 --- src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java b/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java index acdf272..f2150e5 100644 --- a/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java +++ b/src/main/java/com/genersoft/iot/vmp/gb28181/event/online/OnlineEventListener.java @@ -52,7 +52,7 @@ case VideoManagerConstants.EVENT_ONLINE_REGISTER: // 瓒呮椂鏃堕棿 redis.set(key, event.getDevice().getDeviceId(), sipConfig.getKeepaliveTimeOut()); - device.setRegisterTime(format.format(new Date(System.currentTimeMillis()))); + device.setRegisterTime(format.format(System.currentTimeMillis())); break; // 璁惧涓诲姩鍙戦�佸績璺宠Е鍙戠殑鍦ㄧ嚎浜嬩欢 case VideoManagerConstants.EVENT_ONLINE_KEEPLIVE: @@ -63,7 +63,7 @@ } else { redis.expire(key, sipConfig.getKeepaliveTimeOut()); } - device.setKeepaliveTime(format.format(new Date(System.currentTimeMillis()))); + device.setKeepaliveTime(format.format(System.currentTimeMillis())); break; // 璁惧涓诲姩鍙戦�佹秷鎭Е鍙戠殑鍦ㄧ嚎浜嬩欢 case VideoManagerConstants.EVENT_ONLINE_MESSAGE: @@ -74,5 +74,8 @@ device.setOnline(1); // 澶勭悊涓婄嚎鐩戝惉 storager.updateDevice(device); + + // TODO 涓婄嚎娣诲姞璁㈤槄 + } } -- Gitblit v1.8.0