|
@@ -60,20 +60,15 @@ public class DownService implements IDownService {
|
|
|
if((sceneType == 4 || sceneType == 5) && isObj !=1){ //深时场景
|
|
|
return SSCheckDownload(sceneNum);
|
|
|
}
|
|
|
- SceneDownloadLog sceneDownloadLog;
|
|
|
int isUp = 0;
|
|
|
if(scenePro == null){
|
|
|
isUp = 1;
|
|
|
}
|
|
|
Integer sceneVersion = getSceneVersion(scenePro, plus);
|
|
|
-
|
|
|
- sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,0,isUp);
|
|
|
DownVo downVo = new DownVo();
|
|
|
- if(sceneDownloadLog != null){
|
|
|
- downVo.setDownloadStatus(1);
|
|
|
- return downVo;
|
|
|
- }
|
|
|
- sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,1,isUp);
|
|
|
+
|
|
|
+
|
|
|
+ SceneDownloadLog sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,1,isUp);
|
|
|
//3下载过,并且没有修改过
|
|
|
if(sceneDownloadLog != null && sceneDownloadLog.getSceneVersion().intValue() == sceneVersion){
|
|
|
downVo.setDownloadStatus(3);
|
|
@@ -89,7 +84,14 @@ public class DownService implements IDownService {
|
|
|
downVo.setDownloadStatus(2);
|
|
|
redisUtil.del(String.format(redisKey,sceneNum)); // 清除旧的下载信息
|
|
|
return downVo;
|
|
|
+ }else {
|
|
|
+ sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,0,isUp);
|
|
|
+ if(sceneDownloadLog != null){
|
|
|
+ downVo.setDownloadStatus(1);
|
|
|
+ return downVo;
|
|
|
+ }
|
|
|
}
|
|
|
+
|
|
|
return downVo;
|
|
|
}
|
|
|
|