Bladeren bron

baseData 路径修复

wuweihao 3 jaren geleden
bovenliggende
commit
59c0763c95

+ 1 - 1
720yun_local_manage/gis_pano/src/main/java/com/gis/cms/service/impl/WorkServiceImpl.java

@@ -115,7 +115,7 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
         log.info("创建对象完成: {}", id);
 
         // 创建someData; 如someData作出修改,记得把代码里的someData 跟服务器里的someData都修改
-        String baseSomeDataPath = configConstant.serverBasePath + "baseData/someData.json";
+        String baseSomeDataPath = configConstant.serverBasePath + "/baseData/someData.json";
         log.info("服务器base someData.json path: {}", baseSomeDataPath);
         BaseRuntimeException.isHas(!FileUtil.isFile(baseSomeDataPath), null, "服务器someData.json模板不存在");
         String content = FileUtil.readUtf8String(baseSomeDataPath);

+ 41 - 0
720yun_local_manage/gis_pano_producer/src/main/resources/someData.json

@@ -0,0 +1,41 @@
+{
+  "isPassword": 0,
+  "password": "",
+  "ossSomeData": "",
+  "icon": "",
+  "description": "",
+  "updateTime": "",
+  "sceneIndex": "",
+  "catalogRoot": [
+    {
+      "id": 100,
+      "name": "一级分组",
+      "children": [
+        1
+      ]
+    }
+  ],
+  "firstScene": "",
+  "userId": "",
+  "isLogo": 1,
+  "appIcon": "",
+  "qrCode": "",
+  "createTime": "",
+  "catalogs": [
+    {
+      "id": 1,
+      "name": "默认二级分组"
+    }
+  ],
+  "isRemind": 1,
+  "name": "",
+  "pcIcon": "",
+  "scenes": [],
+  "isAuto": 1,
+  "logo": "",
+  "logoChange": false,
+  "share": "",
+  "id": "",
+  "remindTime": 1,
+  "status": 0
+}