浏览代码

更新预览缩略图

xiewj 2 年之前
父节点
当前提交
8dfdb4813b

+ 4 - 0
720yun_fd_consumer/gis_consumer/src/main/java/com/gis/service/impl/FodderServiceImpl.java

@@ -121,6 +121,10 @@ public class FodderServiceImpl implements FodderService {
             entity.setTour(tourXmlScene);
             // 上传切图
             this.uploadOss(sceneCode);
+            String ossUrl = configConstant.ossDomain + configConstant.ossBasePath + sceneCode+"/vtour/panos/"+sceneCode+".tiles/thumb.jpg";
+
+            entity.setIcon(ossUrl);
+
             log.info("任务成功返回: " + obj);
         } catch (InterruptedException e) {
             e.printStackTrace();