lyhzzz hai 11 meses
pai
achega
6ea13680d4

+ 6 - 3
src/main/java/com/fdkankan/openApi/service/www/impl/DownSceneServiceImpl.java

@@ -33,13 +33,16 @@ public class DownSceneServiceImpl implements IDownSceneService {
             throw new BusinessException(checkResult.getCode(),checkResult.getMessage());
         }
         JSONObject checkObject = JSONObject.parseObject(JSONObject.toJSONString(checkResult.getData()));
+        Integer checkStatus = checkObject.getInteger("downloadStatus");
         String checkUrl = checkObject.getString("downloadUrl");
         if(StringUtils.isNotBlank(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);