lyhzzz 4 месяцев назад
Родитель
Сommit
ee6b2a2040
1 измененных файлов с 9 добавлено и 9 удалено
  1. 9 9
      src/main/java/com/fdkankan/fusion/down/CaseDownService.java

+ 9 - 9
src/main/java/com/fdkankan/fusion/down/CaseDownService.java

@@ -131,15 +131,15 @@ public class CaseDownService {
 
 
     public DownVo checkDown(Integer caseId) {
     public DownVo checkDown(Integer caseId) {
         DownVo downVo = new DownVo();
         DownVo downVo = new DownVo();
-        String redisKey = String.format(downProcessKey, caseId);
-        if( redisUtil.hasKey(redisKey)){
-            String res = redisUtil.get(redisKey);
-            DownloadProcessVo downloadProcessVo = JSONObject.parseObject(res, DownloadProcessVo.class);
-            if(downloadProcessVo.getStatus() == 1000 &&  downloadProcessVo.getPercent() == 100 && StringUtils.isNotBlank(downloadProcessVo.getUrl())){
-                downVo.setDownloadStatus(3);
-                downVo.setDownloadUrl(downloadProcessVo.getUrl());
-            }
-        }
+//        String redisKey = String.format(downProcessKey, caseId);
+//        if( redisUtil.hasKey(redisKey)){
+//            String res = redisUtil.get(redisKey);
+//            DownloadProcessVo downloadProcessVo = JSONObject.parseObject(res, DownloadProcessVo.class);
+//            if(downloadProcessVo.getStatus() == 1000 &&  downloadProcessVo.getPercent() == 100 && StringUtils.isNotBlank(downloadProcessVo.getUrl())){
+//                downVo.setDownloadStatus(3);
+//                downVo.setDownloadUrl(downloadProcessVo.getUrl());
+//            }
+//        }
         return downVo;
         return downVo;
     }
     }