dengsixing недель назад: 2
Родитель
Сommit
54d2003fe1

+ 1 - 1
src/main/java/com/fdkankan/download/bean/SceneViewInfo.java

@@ -280,7 +280,7 @@ public class SceneViewInfo implements Serializable {
 
     private String orientation;
 
-
+    private String offlineVersion;
 
 
 

+ 5 - 3
src/main/java/com/fdkankan/download/service/impl/SceneDownloadHandlerServiceImpl.java

@@ -124,6 +124,8 @@ public class SceneDownloadHandlerServiceImpl {
     private String exeContent;
     @Value("${download.config.exe-content-v3}")
     private String exeContentV3;
+    @Value("${platform.version:#{null}}")
+    private String platformVersion;
 
     @Autowired
     private RedisUtil redisUtil;
@@ -141,6 +143,8 @@ public class SceneDownloadHandlerServiceImpl {
     private LaserHttpClient laserHttpClient;
     @Value("${4dkk.laserService.bucket}")
     private String laserBucket;
+    @Resource
+    private FYunConstants fYunConstants;
 
     @Async("sceneDownLoadExecutror")
     public void download(DownLoadTaskBean downLoadTaskBean){
@@ -666,9 +670,6 @@ public class SceneDownloadHandlerServiceImpl {
         return map;
     }
 
-    @Resource
-    private FYunConstants fYunConstants;
-
     private void setRtkInfo(SceneViewInfo sceneViewInfo){
         //如果是激光场景,请求激光系统获取激光场景特有属性,提供给许钟文使用
         try {
@@ -706,6 +707,7 @@ public class SceneDownloadHandlerServiceImpl {
         SceneEditControlsVO controls = sceneViewInfo.getControls();
         controls.setShowLock(CommonStatus.NO.code().intValue());
         String sceneJsonPath = String.format(UploadFilePath.DATA_VIEW_PATH, num) + "scene.json";
+        sceneViewInfo.setOfflineVersion(platformVersion);
         FileUtil.writeUtf8String(JSON.toJSONString(sceneViewInfo, SerializerFeature.WriteNullStringAsEmpty, SerializerFeature.WriteNullNumberAsZero), String.format(this.sourceLocal, num, this.wwwroot + sceneJsonPath));
     }