fix(接口定义): 修复执行场景提示csv不存在的缺陷

--bug=1021946 --user=王孝刚 【接口测试】环境变量里添加csv变量,在场景中选择这个环境,执行场景,提示csv文件不存在
https://www.tapd.cn/55049933/s/1327056
This commit is contained in:
wxg0103 2023-01-12 14:58:23 +08:00 committed by fit2-zhao
parent 5d795505f1
commit c395b120ce
1 changed files with 1 additions and 1 deletions

View File

@ -125,7 +125,7 @@ public class ElementUtil {
boolean isRepository = false; boolean isRepository = false;
BodyFile file = item.getFiles().get(0); BodyFile file = item.getFiles().get(0);
boolean isRef = StringUtils.equalsIgnoreCase(file.getStorage(), StorageConstants.FILE_REF.name()); boolean isRef = StringUtils.equalsIgnoreCase(file.getStorage(), StorageConstants.FILE_REF.name());
String path = StringUtils.join(BODY_FILE_DIR, File.pathSeparator, item.getFiles().get(0).getId(), "_", item.getFiles().get(0).getName()); String path = StringUtils.join(BODY_FILE_DIR, File.separator, item.getFiles().get(0).getId(), "_", item.getFiles().get(0).getName());
if (StringUtils.equalsIgnoreCase(file.getStorage(), StorageConstants.FILE_REF.name())) { if (StringUtils.equalsIgnoreCase(file.getStorage(), StorageConstants.FILE_REF.name())) {
fileId = file.getFileId(); fileId = file.getFileId();
FileMetadata fileMetadata = fileMetadataService.getFileMetadataById(fileId); FileMetadata fileMetadata = fileMetadataService.getFileMetadataById(fileId);