Selaa lähdekoodia

修改激光场景计算逻辑

tianboguang 2 vuotta sitten
vanhempi
commit
e04a1052e7

+ 6 - 0
src/main/java/com/fdkankan/contro/mq/service/impl/BuildSceneServiceImpl.java

@@ -270,6 +270,12 @@ public class BuildSceneServiceImpl implements IBuildSceneService {
             this.pushMsgToApp(pushChannel,pushToken, cameraType, scenePlus.getTitle(), scenePlusExt.getWebSite());
 
             if (cameraType == 14) {
+                // 如果是激光场景,上传全景文件到V3路径,激光系统上线后,可不用上传
+                String imagePath = String.format(UploadFilePath.IMG_VIEW_PATH, sceneCode);
+                String V3ImagePath = String.format(ConstantFilePath.IMAGE_PATH_FORMAT, sceneCode);
+                uploadFiles.entrySet().stream().filter(entry -> entry.getValue().contains(imagePath)).forEach(entry -> {
+                    fYunFileService.uploadFile(entry.getKey(), entry.getValue().replace(imagePath, V3ImagePath));
+                });
                 //计算成功  激光转台相机 同步 请求
                 fdkkLaserService.syncBuildResult(scenePlus.getNum(), scenePlusExt.getDataSource(),scenePlus.getCreateTime());
             }