|
|
@@ -6,6 +6,7 @@ import com.fdkankan.common.constant.SceneConstant;
|
|
|
import com.fdkankan.manage_jp.common.DownloadStatusEnum;
|
|
|
import com.fdkankan.manage_jp.common.RedisKeyUtil;
|
|
|
import com.fdkankan.manage_jp.common.ResultCode;
|
|
|
+import com.fdkankan.manage_jp.common.SceneSourceUtil;
|
|
|
import com.fdkankan.manage_jp.entity.*;
|
|
|
import com.fdkankan.manage_jp.exception.BusinessException;
|
|
|
import com.fdkankan.manage_jp.httpClient.service.LaserService;
|
|
|
@@ -55,7 +56,7 @@ public class DownService implements IDownService {
|
|
|
}
|
|
|
Integer sceneType = scenePro !=null ? scenePro.getSceneSource() : plus.getSceneSource();
|
|
|
log.info("checkDownLoad--sceneType:{},isObj:{}",sceneType,isObj);
|
|
|
- if((sceneType == 4 || sceneType == 5 ) && isObj !=1){ //深时场景
|
|
|
+ if(SceneSourceUtil.isLaser(sceneType) && isObj !=1){ //深时场景
|
|
|
return SSCheckDownload(sceneNum,lang);
|
|
|
}
|
|
|
SceneDownloadLog sceneDownloadLog;
|
|
|
@@ -131,7 +132,7 @@ public class DownService implements IDownService {
|
|
|
|
|
|
Integer sceneType = scenePro !=null ? scenePro.getSceneSource() : scenePlus.getSceneSource();
|
|
|
log.info("down--sceneType:{},isObj:{}",sceneType,isObj);
|
|
|
- if((sceneType == 4 || sceneType == 5 )&& isObj !=1){ //深时场景
|
|
|
+ if(SceneSourceUtil.isLaser(sceneType)&& isObj !=1){ //深时场景
|
|
|
return SSDownload(sceneNum,userId,lang);
|
|
|
}
|
|
|
|
|
|
@@ -179,7 +180,7 @@ public class DownService implements IDownService {
|
|
|
}
|
|
|
Integer sceneType = scenePro !=null ? scenePro.getSceneSource() : scenePlus.getSceneSource();
|
|
|
log.info("downloadProcess--sceneType:{},isObj:{}",sceneType,isObj);
|
|
|
- if((sceneType == 4 || sceneType == 5 ) && isObj !=1){ //深时场景
|
|
|
+ if(SceneSourceUtil.isLaser(sceneType) && isObj !=1){ //深时场景
|
|
|
return SSDownloadProcess(sceneNum,lang);
|
|
|
}
|
|
|
String redisKey = RedisKey.PREFIX_DOWNLOAD_PROGRESS;
|
|
|
@@ -292,6 +293,7 @@ public class DownService implements IDownService {
|
|
|
LambdaUpdateWrapper<SceneDownloadLog> wrapper = new LambdaUpdateWrapper<>();
|
|
|
wrapper.eq(SceneDownloadLog::getSceneNum,sceneNum);
|
|
|
wrapper.eq(SceneDownloadLog::getStatus,0);
|
|
|
+ wrapper.eq(SceneDownloadLog::getSysVersion,"ss");
|
|
|
wrapper.set(SceneDownloadLog::getDownloadUrl,vo.getUrl());
|
|
|
wrapper.set(SceneDownloadLog::getStatus,1);
|
|
|
sceneDownloadLogService.update(wrapper);
|