refactor(接口测试): 优化图片显示返回类型

This commit is contained in:
wxg0103 2023-10-12 19:27:26 +08:00 committed by wxg0103
parent 68d5f73290
commit a5d002b894
2 changed files with 2 additions and 3 deletions

View File

@ -130,8 +130,7 @@ export default {
'image/webp',
'image/svg+xml',
'image/apng',
'image/avif',
"application/octet-stream"
'image/avif'
],
srcUrl: '',
};

View File

@ -27,7 +27,7 @@ public class JMeterBase {
private final static String SPLIT_EQ = "split==";
private final static String SPLIT_AND = "split&&";
private static final List<String> imageList = Arrays.asList("image/png", "image/jpeg", "image/gif", "image/bmp", "image/webp", "image/svg+xml", "image/apng", "image/avif", "application/octet-stream");
private static final List<String> imageList = Arrays.asList("image/png", "image/jpeg", "image/gif", "image/bmp", "image/webp", "image/svg+xml", "image/apng", "image/avif");
public static HashTree getHashTree(Object scriptWrapper) throws Exception {
Field field = scriptWrapper.getClass().getDeclaredField("testPlan");