|
|
@@ -5,6 +5,7 @@ import com.alibaba.fastjson.JSONObject;
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
|
|
|
import com.fdkankan.fusion.common.ResultCode;
|
|
|
import com.fdkankan.fusion.common.enums.DownloadStatusEnum;
|
|
|
+import com.fdkankan.fusion.common.util.NumTypeUtils;
|
|
|
import com.fdkankan.fusion.common.util.RedisKeyUtil;
|
|
|
import com.fdkankan.fusion.entity.*;
|
|
|
import com.fdkankan.fusion.exception.BusinessException;
|
|
|
@@ -75,7 +76,7 @@ public class DownService implements IDownService {
|
|
|
}
|
|
|
Integer sceneType = plus.getSceneSource();
|
|
|
log.info("checkDownLoad--sceneType:{},isObj:{}",sceneType,isObj);
|
|
|
- if((sceneType == 4 || sceneType == 5) && isObj !=1){ //深时场景
|
|
|
+ if(NumTypeUtils.isLaserBySceneSource(sceneType) && isObj !=1){ //深时场景
|
|
|
return SSCheckDownload(sceneNum);
|
|
|
}
|
|
|
SceneDownLog sceneDownloadLog;
|
|
|
@@ -120,7 +121,7 @@ public class DownService implements IDownService {
|
|
|
Integer sceneVersion = getSceneVersion( scenePlus);
|
|
|
log.info("down--sceneType:{},isObj:{}",sceneType,isObj);
|
|
|
saveLog(scenePlus,sceneVersion,type,isObj);
|
|
|
- if((sceneType == 4 || sceneType == 5) && isObj !=1){ //深时场景
|
|
|
+ if(NumTypeUtils.isLaserBySceneSource(sceneType) && isObj !=1){ //深时场景
|
|
|
return SSDownload(sceneNum,userId);
|
|
|
}
|
|
|
String redisKeyProcess = RedisKey.PREFIX_DOWNLOAD_PROGRESS_V4;
|
|
|
@@ -175,7 +176,7 @@ public class DownService implements IDownService {
|
|
|
}
|
|
|
Integer sceneType = scenePlus.getSceneSource();
|
|
|
log.info("downloadProcess--sceneType:{},isObj:{}",sceneType,isObj);
|
|
|
- if((sceneType == 4 || sceneType == 5) && isObj !=1){ //深时场景
|
|
|
+ if(NumTypeUtils.isLaserBySceneSource(sceneType) && isObj !=1){ //深时场景
|
|
|
return SSDownloadProcess(sceneNum);
|
|
|
}
|
|
|
String redisKey = RedisKey.PREFIX_DOWNLOAD_PROGRESS_V4;
|