refactor(性能测试): 性能测试下载zip使用流下载,兼容1.20升级上来的数据
This commit is contained in:
parent
f43a61f996
commit
a580bd0a9e
|
@ -192,7 +192,8 @@ public class EngineFactory {
|
|||
if (CollectionUtils.isNotEmpty(resourceFiles)) {
|
||||
resourceFiles.forEach(cf -> {
|
||||
InputStream in = fileMetadataService.getFileAsStream(cf.getId());
|
||||
if (in == null) {
|
||||
// 兼容1.20之前的版本
|
||||
if (cf.getStorage() == null) {
|
||||
byte[] bytes = fileMetadataService.loadFileAsBytes(cf.getId());
|
||||
in = new ByteArrayInputStream(bytes);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue