Merge branch 'master' into dev/数据库统合

dev/数据库统合
648540858 2025-01-06 09:35:04 +08:00
commit 8ff68b2291
1 changed files with 3 additions and 0 deletions

View File

@ -201,8 +201,11 @@ public class DeviceServiceImpl implements IDeviceService {
log.warn("[设备离线]{}, device{}", reason, deviceId); log.warn("[设备离线]{}, device{}", reason, deviceId);
Device device = getDeviceByDeviceIdFromDb(deviceId); Device device = getDeviceByDeviceIdFromDb(deviceId);
if (device == null) { if (device == null) {
log.warn("[设备不存在] device{}", deviceId);
return; return;
} }
log.info("[设备离线] device{} 当前心跳间隔: {} 上次心跳时间:{} 上次注册时间: {}", deviceId,
device.getKeepaliveIntervalTime(), device.getKeepaliveTime(), device.getRegisterTime());
String registerExpireTaskKey = VideoManagerConstants.REGISTER_EXPIRE_TASK_KEY_PREFIX + deviceId; String registerExpireTaskKey = VideoManagerConstants.REGISTER_EXPIRE_TASK_KEY_PREFIX + deviceId;
dynamicTask.stop(registerExpireTaskKey); dynamicTask.stop(registerExpireTaskKey);
if (device.isOnLine()) { if (device.isOnLine()) {