소스 검색

修改查询逻辑

tianboguang 2 년 전
부모
커밋
bfeee9a13f
2개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 2 2
      src/main/java/com/fdkankan/openApi/service/www/impl/ScenePlusServiceImpl.java
  2. 1 1
      src/main/resources/logback-spring.xml

+ 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"/>