|
|
@@ -2603,7 +2603,8 @@ public class SceneEditInfoServiceImpl extends ServiceImpl<ISceneEditInfoMapper,
|
|
|
// if (!StorageType.LOCAL.code().equals(this.type)) {
|
|
|
String filePath = userEditPath + fileName;
|
|
|
String imageUrl = ossUrlPrefix + filePath + "?t=" + System.currentTimeMillis();
|
|
|
- FileUtils.downLoadFromUrl(imageUrl, fileName, localImagesPath);
|
|
|
+// FileUtils.downLoadFromUrl(imageUrl, fileName, localImagesPath);
|
|
|
+ uploadToOssUtil.download(filePath, localImagesPath);
|
|
|
// }
|
|
|
long end1 = Calendar.getInstance().getTimeInMillis();
|
|
|
log.info("下载耗时:{},url:{}", end1 - start, ossUrlPrefix + filePath + "?t=" + System.currentTimeMillis());
|