lyhzzz 4 months ago
parent
commit
a464c86a64

+ 7 - 0
src/main/java/com/fdkankan/manage_jp/service/impl/DownService.java

@@ -148,6 +148,13 @@ public class DownService implements IDownService {
             redisKey = RedisKey.SCENE_DOWNLOADS_TASK_V4;
             sysVersion = "v4";
         }
+
+        String redisKey2 = RedisKey.PREFIX_DOWNLOAD_PROGRESS;
+        if(scenePro == null){
+            redisKey2 = RedisKey.PREFIX_DOWNLOAD_PROGRESS_V4;
+        }
+        redisUtil.del(String.format(redisKey2,sceneNum));
+
         redisUtil.lRightPush(redisKey, JSONObject.toJSONString(params));
         SceneDownloadLog sceneDownloadLogEntity = new SceneDownloadLog();
         sceneDownloadLogEntity.setUserId(userId);