事件接口存取图片路径修改
This commit is contained in:
parent
3e70048a2a
commit
7d7ccce242
|
@ -106,7 +106,9 @@ public class EventController {
|
||||||
event.setLatitude(camera.getBigDecimal("latitude"));
|
event.setLatitude(camera.getBigDecimal("latitude"));
|
||||||
event.setLongitude(camera.getBigDecimal("longitude"));
|
event.setLongitude(camera.getBigDecimal("longitude"));
|
||||||
JSONObject image = jsonObject.getJSONObject("image");
|
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"));
|
event.setTaskId(jsonObject.getString("taskId"));
|
||||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//要转换的时间格式
|
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//要转换的时间格式
|
||||||
Date date;
|
Date date;
|
||||||
|
|
Loading…
Reference in New Issue