소스 검색

更新场景码命名

wuweihao 3 년 전
부모
커밋
4b95937d4b

+ 1 - 1
720yun_local_consumer/src/main/java/com/gis/listener/Local720Listener.java

@@ -74,7 +74,7 @@ public class Local720Listener {
             // 直接结束,抛异常的话,会造成死循环,产生大量日志,而且队列也跑不下去
             return;
         }
-        String panoPath = configConstant.serverBasePath + File.separator  + sceneCode + "/pano.jpg";
+        String panoPath = configConstant.serverBasePath + File.separator  + sceneCode + "/" +sceneCode+ ".jpg";
         String cmd = CmdConstant.PANO_KRPANO + panoPath;
 
 

+ 5 - 4
720yun_local_manage/gis_pano/src/main/resources/someData.json

@@ -10,9 +10,7 @@
     {
       "id": 100,
       "name": "一级分组",
-      "children": [
-        1
-      ]
+      "children": [1]
     }
   ],
   "firstScene": "",
@@ -37,7 +35,10 @@
   "share": "",
   "id": "",
   "remindTime": 1,
-  "bgm": "",
+  "bgm": {
+    "url": "",
+    "name": ""
+  },
   "guideDefaultTime": "",
   "expandHotStyles": [],
   "status": 0

+ 2 - 1
720yun_local_manage/gis_pano_producer/src/main/java/com/gis/cms/service/impl/ProduceServiceImpl.java

@@ -58,7 +58,8 @@ public class ProduceServiceImpl implements ProducerService {
         String sceneCode = RandomUtil.getSceneCode("LC720_");
         // 全景图固定命名
         String basePath = configConstant.serverBasePath + File.separator + sceneCode;
-        String savePath = basePath + File.separator + "pano.jpg";
+        // 切图后也会用场景码命名文件夹
+        String savePath = basePath + File.separator + sceneCode + ".jpg";
         log.info("全景图保存路径: {}", savePath);
         FileUtil.writeFromStream(file.getInputStream(), savePath);