|
@@ -24,11 +24,11 @@ public class DownSceneServiceImpl implements IDownSceneService {
|
|
|
|
|
|
|
|
|
@Override
|
|
|
- public DownSceneDto getSceneOfflinePage(String num) {
|
|
|
+ public DownSceneDto getSceneOfflinePage(String num,Integer type) {
|
|
|
if(StringUtils.isBlank(num)){
|
|
|
throw new BusinessException(ErrorCode.PARAM_ERROR);
|
|
|
}
|
|
|
- ResultData checkResult = jmgaClient.get(JmgaConstant.API_GET_CHECK_DOWNLOAD + "?num=" + num);
|
|
|
+ ResultData checkResult = jmgaClient.get(JmgaConstant.API_GET_CHECK_DOWNLOAD + "?num=" + num +"&isObj="+type);
|
|
|
if(checkResult.getCode() != 0 || checkResult.getData() == null){
|
|
|
throw new BusinessException(checkResult.getCode(),checkResult.getMessage());
|
|
|
}
|
|
@@ -39,13 +39,13 @@ public class DownSceneServiceImpl implements IDownSceneService {
|
|
|
return new DownSceneDto(checkUrl);
|
|
|
}
|
|
|
if(checkStatus !=1){
|
|
|
- ResultData downResult = jmgaClient.get(JmgaConstant.API_GET_DOWN_SCENE + "?num=" + num);
|
|
|
+ ResultData downResult = jmgaClient.get(JmgaConstant.API_GET_DOWN_SCENE + "?num=" + num +"&isObj="+type);
|
|
|
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 +"&isObj="+type);
|
|
|
if(processResult.getCode() != 0 || processResult.getData() == null){
|
|
|
throw new BusinessException(processResult.getCode(),processResult.getMessage());
|
|
|
}
|