From 7d7ccce242cb674bbc79af4e94ba48627006bbc5 Mon Sep 17 00:00:00 2001 From: wuweida <2918581207@qq.com> Date: Thu, 19 May 2022 14:46:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E6=8E=A5=E5=8F=A3=E5=AD=98?= =?UTF-8?q?=E5=8F=96=E5=9B=BE=E7=89=87=E8=B7=AF=E5=BE=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/hisense/monitormanage/controller/EventController.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/hisense/monitormanage/controller/EventController.java b/src/main/java/com/hisense/monitormanage/controller/EventController.java index 96cb522..71610ed 100644 --- a/src/main/java/com/hisense/monitormanage/controller/EventController.java +++ b/src/main/java/com/hisense/monitormanage/controller/EventController.java @@ -106,7 +106,9 @@ public class EventController { event.setLatitude(camera.getBigDecimal("latitude")); event.setLongitude(camera.getBigDecimal("longitude")); JSONObject image = jsonObject.getJSONObject("image"); - event.setImageUrl(image.getString("imageUrl")); + String images = image.getString("imageUrl"); + String all = images.replaceAll(images.substring(19, 26), "7:8070"); + event.setImageUrl(all); event.setTaskId(jsonObject.getString("taskId")); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//要转换的时间格式 Date date;