fix(接口定义): 修复case关联文件库文件报空指针的缺陷
This commit is contained in:
parent
e48580810a
commit
a2d6b1b595
|
@ -50,8 +50,10 @@ public class ApiFileUtil extends FileUtils {
|
|||
if (fileManagerService == null) {
|
||||
fileManagerService = CommonBeanFactory.getBean(FileManagerService.class);
|
||||
}
|
||||
for (MultipartFile bodyFile : bodyFiles) {
|
||||
fileManagerService.upload(bodyFile, getRequest(requestId));
|
||||
if (CollectionUtils.isNotEmpty(bodyFiles) && StringUtils.isNotBlank(requestId)) {
|
||||
for (MultipartFile bodyFile : bodyFiles) {
|
||||
fileManagerService.upload(bodyFile, getRequest(requestId));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue