|
@@ -371,7 +371,7 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
fYunFileService.uploadFileByCommand(bucket, zipPath, uploadPath);
|
|
|
|
|
|
//更新进度100
|
|
|
- String url = this.publicUrl + uploadPath + "?t=" + Calendar.getInstance().getTimeInMillis();
|
|
|
+ String url = uploadPath + "?t=" + Calendar.getInstance().getTimeInMillis();
|
|
|
this.updateProgress(null, num, SceneDownloadProgressStatus.DOWNLOAD_SUCCESS.code(), url, "v3");
|
|
|
|
|
|
}catch (Exception e){
|
|
@@ -690,9 +690,11 @@ public class SceneDownloadHandlerServiceImpl {
|
|
|
}else{
|
|
|
// HttpUtil.downloadFile(url, String.format(sourceLocal, num, prefix + key));
|
|
|
try {
|
|
|
- this.downloadFile(url, String.format(sourceLocal, num, prefix + key));
|
|
|
+ fYunFileService.downloadFileByCommand(String.format(sourceLocal, num, prefix + key), key);
|
|
|
+// this.downloadFile(url, String.format(sourceLocal, num, prefix + key));
|
|
|
}catch (Exception e){
|
|
|
log.info("下载文件报错,path:{}", String.format(sourceLocal, num, prefix + key));
|
|
|
+ log.error("下载oss文件出错",e);
|
|
|
}
|
|
|
}
|
|
|
}
|