|
@@ -33,13 +33,16 @@ public class DownSceneServiceImpl implements IDownSceneService {
|
|
throw new BusinessException(checkResult.getCode(),checkResult.getMessage());
|
|
throw new BusinessException(checkResult.getCode(),checkResult.getMessage());
|
|
}
|
|
}
|
|
JSONObject checkObject = JSONObject.parseObject(JSONObject.toJSONString(checkResult.getData()));
|
|
JSONObject checkObject = JSONObject.parseObject(JSONObject.toJSONString(checkResult.getData()));
|
|
|
|
+ Integer checkStatus = checkObject.getInteger("downloadStatus");
|
|
String checkUrl = checkObject.getString("downloadUrl");
|
|
String checkUrl = checkObject.getString("downloadUrl");
|
|
if(StringUtils.isNotBlank(checkUrl)){
|
|
if(StringUtils.isNotBlank(checkUrl)){
|
|
return new DownSceneDto(checkUrl);
|
|
return new DownSceneDto(checkUrl);
|
|
}
|
|
}
|
|
- ResultData downResult = jmgaClient.get(JmgaConstant.API_GET_DOWN_SCENE + "?num=" + num);
|
|
|
|
- if(downResult.getCode() != 0 || downResult.getData() == null){
|
|
|
|
- throw new BusinessException(downResult.getCode(),downResult.getMessage());
|
|
|
|
|
|
+ if(checkStatus !=1){
|
|
|
|
+ ResultData downResult = jmgaClient.get(JmgaConstant.API_GET_DOWN_SCENE + "?num=" + num);
|
|
|
|
+ if(downResult.getCode() != 0 || downResult.getData() == null){
|
|
|
|
+ throw new BusinessException(downResult.getCode(),downResult.getMessage());
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
ResultData processResult = jmgaClient.get(JmgaConstant.API_GET_DOWNLOAD_PROCESS + "?num=" + num);
|
|
ResultData processResult = jmgaClient.get(JmgaConstant.API_GET_DOWNLOAD_PROCESS + "?num=" + num);
|