소스 검색

v4场景下载

dengsixing 2 년 전
부모
커밋
b53015249a
1개의 변경된 파일7개의 추가작업 그리고 0개의 파일을 삭제
  1. 7 0
      src/main/java/com/fdkankan/download/service/impl/SceneDownloadHandlerServiceImpl.java

+ 7 - 0
src/main/java/com/fdkankan/download/service/impl/SceneDownloadHandlerServiceImpl.java

@@ -426,6 +426,13 @@ public class SceneDownloadHandlerServiceImpl {
         int imagesVersion, Set<String> cacheKeys,
         String filePath, String imageNumPath, String version) throws Exception{
 
+        if(filePath.endsWith("/")){
+            //更新进度
+            this.updateProgress(new BigDecimal(count.incrementAndGet()).divide(new BigDecimal(total), 6, BigDecimal.ROUND_HALF_UP),
+                num, SceneDownloadProgressStatus.DOWNLOADING.code(), null, version);
+            return;
+        }
+
         //某个目录不需要打包
         if(filePath.contains(imageNumPath + "panorama/panorama_edit/"))
             return;