You've already forked FrameTour-BE
- 将 deviceNo 和 channelNo 字段替换为 previewUrl 和 previewCoverUrl - 修改 DeviceRespVO 类中的字段定义- 在 AppScenicServiceImpl 中更新设备配置信息的设置逻辑
This commit is contained in:
@@ -38,6 +38,6 @@ public class DeviceRespVO {
|
|||||||
private String scenicName;
|
private String scenicName;
|
||||||
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
|
||||||
private Date keepaliveAt;
|
private Date keepaliveAt;
|
||||||
private String deviceNo;
|
private String previewUrl;
|
||||||
private String channelNo;
|
private String previewCoverUrl;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -285,8 +285,8 @@ public class AppScenicServiceImpl implements AppScenicService {
|
|||||||
deviceRespVO.setNo(device.getNo());
|
deviceRespVO.setNo(device.getNo());
|
||||||
|
|
||||||
DeviceConfigManager config = deviceRepository.getDeviceConfigManager(device.getId());
|
DeviceConfigManager config = deviceRepository.getDeviceConfigManager(device.getId());
|
||||||
deviceRespVO.setDeviceNo(device.getNo());
|
deviceRespVO.setPreviewUrl(config.getString("preview_url"));
|
||||||
deviceRespVO.setChannelNo(config.getString("channel_no"));
|
deviceRespVO.setPreviewCoverUrl(config.getString("preview_cover_url"));
|
||||||
return deviceRespVO;
|
return deviceRespVO;
|
||||||
}).collect(Collectors.toList());
|
}).collect(Collectors.toList());
|
||||||
for (DeviceRespVO deviceRespVO : deviceRespVOList) {
|
for (DeviceRespVO deviceRespVO : deviceRespVOList) {
|
||||||
|
|||||||
Reference in New Issue
Block a user