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;