事件接口存取图片路径修改

This commit is contained in:
wuweida 2022-05-19 14:46:06 +08:00
parent 3e70048a2a
commit 7d7ccce242
1 changed files with 3 additions and 1 deletions

View File

@ -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;