Skip to content

Commit

Permalink
refactor(性能测试): 性能测试下载zip使用流下载,兼容1.20升级上来的数据
Browse files Browse the repository at this point in the history
  • Loading branch information
liuruibin committed Jan 23, 2024
1 parent f43a61f commit a580bd0
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,8 @@ public static EngineContext createContext(LoadTestReportWithBLOBs loadTestReport
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);
}
Expand Down

0 comments on commit a580bd0

Please sign in to comment.