浏览代码

修改查询逻辑

tianboguang 2 年之前
父节点
当前提交
bfeee9a13f

+ 2 - 2
src/main/java/com/fdkankan/openApi/service/www/impl/ScenePlusServiceImpl.java

@@ -311,7 +311,7 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
     @Override
     public Object getPointInfo(String sceneCode) {
         // 获取vision.txt 文件内容返回
-        String content = fYunFileService.getFileContent(String.format(UploadFilePath.IMG_VIEW_PATH, sceneCode));
+        String content = fYunFileService.getFileContent(String.format(UploadFilePath.IMG_VIEW_PATH, sceneCode).concat("vision.txt"));
         JSONObject jsonObject = JSONObject.parseObject(content);
         return jsonObject.get("sweepLocations");
     }
@@ -326,7 +326,7 @@ public class ScenePlusServiceImpl extends ServiceImpl<IScenePlusMapper, ScenePlu
     @Override
     public List<String> getScenePanoramicImageFiles(String sceneCode) {
         // 根据vision.txt 获取全景图文件
-        String content = fYunFileService.getFileContent(String.format(UploadFilePath.IMG_VIEW_PATH, sceneCode));
+        String content = fYunFileService.getFileContent(String.format(UploadFilePath.IMG_VIEW_PATH, sceneCode).concat("vision.txt"));
         JSONObject jsonObject = JSONObject.parseObject(content);
         return jsonObject.getJSONArray("sweepLocations").stream()
                 .map(json -> String.format(fYunFileConfig.getHost()

+ 1 - 1
src/main/resources/logback-spring.xml

@@ -2,7 +2,7 @@
 <configuration>
     <springProperty scope="context" name="LOG_MAX_HISTORY" source="logging.fdkk.maxHistory"/>
     <!-- 日志根目录-->
-    <springProperty scope="context" name="LOG_HOME" source="logging.path"/>
+    <springProperty scope="context" name="LOG_HOME" source="logging.file.path"/>
 
     <!-- 日志级别 -->
     <springProperty scope="context" name="LOG_LEVEL" source="logging.fdkk.level" defaultValue="DEBUG"/>