异步通道刷新,优化ui效果
This commit is contained in:
@@ -216,4 +216,5 @@ public interface IRedisCatchStorage {
|
||||
void sendMobilePositionMsg(JSONObject jsonObject);
|
||||
|
||||
void sendStreamPushRequestedMsg(MessageForPushChannel messageForPushChannel);
|
||||
|
||||
}
|
||||
|
||||
@@ -638,4 +638,5 @@ public class RedisCatchStorageImpl implements IRedisCatchStorage {
|
||||
logger.info("[redis 推流被请求通知] {}: {}-{}", key, msg.getApp(), msg.getStream());
|
||||
redis.convertAndSend(key, (JSONObject)JSON.toJSON(msg));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -445,8 +445,6 @@ public class VideoManagerStorageImpl implements IVideoManagerStorage {
|
||||
device.setOnline(1);
|
||||
logger.info("更新设备在线: " + deviceId);
|
||||
redisCatchStorage.updateDevice(device);
|
||||
List<DeviceChannel> deviceChannelList = deviceChannelMapper.queryOnlineChannelsByDeviceId(deviceId);
|
||||
eventPublisher.catalogEventPublish(null, deviceChannelList, CatalogEvent.ON);
|
||||
return deviceMapper.update(device) > 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user