|
@@ -284,8 +284,15 @@ public class CompatibleOldFileServiceImpl implements CompatibleOldFileService {
|
|
|
IoUtil.writeUtf8(response.getOutputStream(),Boolean.FALSE,"File not existed");
|
|
|
return;
|
|
|
}
|
|
|
-
|
|
|
- IoUtil.copy(service.download(fileInfo.getFileBucket(),fileInfo.getFilePath()),response.getOutputStream());
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ String fetchUrl = service.fetchUrl(fileInfo.getFileBucket(), fileInfo.getFilePath());
|
|
|
+ if (StrUtil.isBlank(fetchUrl)){
|
|
|
+ IoUtil.writeUtf8(response.getOutputStream(),Boolean.FALSE,"File not existed");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ response.sendRedirect(fetchUrl);
|
|
|
}
|
|
|
|
|
|
|