|
@@ -156,7 +156,7 @@ public class SceneListener {
|
|
|
String id = jsonObject.getString("id");
|
|
|
String ossKey="scene_view_data/"+param.getSceneCode()+"/images/panoramas/"+uuid+".jpg";
|
|
|
Map<String,Object> scene=new HashMap<>();
|
|
|
- ScenePanoEntity scenePanoEntity = this.doSlice(traceId ,ossKey, param.getSceneCode(), workEntity.getId(),uuid+".jpg");
|
|
|
+ ScenePanoEntity scenePanoEntity = this.doSlice(traceId ,ossKey, param.getSceneCode(), workEntity.getId(),uuid+".jpg",uuid,id);
|
|
|
// "icon": "https://ossxiaoan.4dage.com/720yun_fd_manage/fd720_8nRkFlzpp/vtour/panos/fd720_8nRkFlzpp.tiles/thumb.jpg",
|
|
|
// "sceneCode": "fd720_8nRkFlzpp",
|
|
|
// "sceneTitle": "0",
|
|
@@ -245,7 +245,7 @@ public class SceneListener {
|
|
|
public static String generateCustomId() {
|
|
|
return "s_" + generateRandomId();
|
|
|
}
|
|
|
- private ScenePanoEntity doSlice(String traceId,String item, String num, String workId, String imgName){
|
|
|
+ private ScenePanoEntity doSlice(String traceId, String item, String num, String workId, String imgName, String uuid, String id){
|
|
|
ScenePanoEntity entity=scenePanoService.findByWorkIdAndName(workId,imgName);
|
|
|
String sceneCode ="";
|
|
|
String newName = "";
|
|
@@ -264,6 +264,8 @@ public class SceneListener {
|
|
|
entity.setOssPath(item);
|
|
|
entity.setName(imgName);
|
|
|
entity.setWorkId(workId);
|
|
|
+ entity.setVisId(id);
|
|
|
+ entity.setUuid(uuid);
|
|
|
long size = FileUtil.size(new File(filePath));
|
|
|
size = size / 1024;
|
|
|
log.info("fileSize: " + size);
|