xiewj 1 ano atrás
pai
commit
91b8f99a0d

+ 8 - 0
720yun_fd_consumer/gis_consumer/src/main/java/com/gis/listener/SceneListener.java

@@ -114,6 +114,10 @@ public class SceneListener {
                 //1,下载场景的全景图 默认 。scene_view_data/panorama/目录下的全景图图片
                 workEntity.setAlgorithmTime(param.getAlgorithmTime());
                 workEntity.setCalcStatus(0);
+                if (ObjectUtil.isNotEmpty(param.getPwd())&&ObjectUtil.isEmpty(workEntity.getPassword())){
+                    workEntity.setPassword(param.getPwd());
+                    workEntity.setIsPassword(1);
+                }
                 workService.update(workEntity);
                 //清理旧数据
                 List<ScenePanoEntity> list = scenePanoService.findByWorkId(workEntity.getId());
@@ -432,6 +436,10 @@ public class SceneListener {
         jsonObject.put("qrCode", qrCode);
         jsonObject.put("icon",workEntity.getIcon());
         jsonObject.put("name",workEntity.getName());
+        if (ObjectUtil.isNotEmpty(workEntity.getPassword())){
+            jsonObject.put("password", workEntity.getPassword());
+        }
+
         String ossKeyPath = configConstant.ossBasePath + workEntity.getId() + "/someData.json";
         workEntity.setQrCode(qrCode);
         workEntity.setShare(shareUrl);