|
@@ -146,6 +146,7 @@ public class DownService implements IDownService {
|
|
|
sceneDownloadLogService.save(sceneDownloadLogEntity);
|
|
|
}
|
|
|
|
|
|
+ //downloads:progress:v4:SS-t-8H5pZsMnHGL
|
|
|
@Override
|
|
|
public DownloadProcessVo downloadProcess(String sceneNum, Integer isObj) {
|
|
|
if (StringUtils.isEmpty(sceneNum)) {
|
|
@@ -163,13 +164,13 @@ public class DownService implements IDownService {
|
|
|
String redisKey = RedisKey.PREFIX_DOWNLOAD_PROGRESS_V4;
|
|
|
// 获取下载进度
|
|
|
String result = redisUtil.get(String.format(redisKey,sceneNum));
|
|
|
+ log.info("redis-down-msg:{}",result);
|
|
|
if(StringUtils.isEmpty(result)){
|
|
|
return new DownloadProcessVo();
|
|
|
}
|
|
|
SceneDownLog sceneDownloadLog = sceneDownloadLogService.getByStatusAndNum(sceneNum,0,getSceneVersion(scenePlus));
|
|
|
|
|
|
DownloadProcessVo downloadProcessVo = JSONObject.parseObject(result, DownloadProcessVo.class);
|
|
|
-
|
|
|
if(sceneDownloadLog != null){
|
|
|
switch (downloadProcessVo.getStatus()) {
|
|
|
case DownloadStatusEnum.DOWNLOAD_SUCCESS_CODE:
|