From 26535d2d71d0b401d0222ca0882f8db565d8a4d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=85=B4=E7=90=B3?= <1911390090@qq.com> Date: Mon, 26 Feb 2024 15:35:25 +0800 Subject: [PATCH] =?UTF-8?q?DeviceMessageHandler=E6=96=B0=E5=A2=9E=E8=A7=86?= =?UTF-8?q?=E9=A2=91=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../message/device/handler/DeviceMessageHandler.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java b/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java index b5d775b0..edc3a8b5 100644 --- a/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java +++ b/zc-business/src/main/java/com/zc/business/message/device/handler/DeviceMessageHandler.java @@ -148,11 +148,17 @@ public class DeviceMessageHandler { } JSONArray pictures = data.getJSONArray("pictures"); + JSONArray video = data.getJSONArray("videoList"); - List pictureList = pictures.stream().map(picture -> (iotAddress + "/profile" + picture)).collect(Collectors.toList()); + // List pictureList = pictures.stream().map(picture -> (iotAddress + "/profile" + picture)).collect(Collectors.toList()); JSONObject otherConfig = new JSONObject(); - otherConfig.put("pictures", pictureList); + otherConfig.put("pictures", pictures); + /**视频地址*/ + otherConfig.put("videoList", video); + +/* JSONObject combinedData = new JSONObject(); + combinedData.put("address", otherConfig);*/ dcWarning.setOtherConfig(otherConfig.toString());