BUGFIX: 模特preview;

This commit is contained in:
shahaibo
2023-10-16 11:42:20 +08:00
parent f76298c42f
commit c3e979e096
4 changed files with 10 additions and 3 deletions

View File

@@ -132,7 +132,8 @@ public class LibraryController {
//存储template临时地址
String path = calculateTempFileUrlNew(userInfo.getId());
String uploadPath = minioUtil.upload("aida-tmp", path, file);
modelsDotDTO.setTemplateUrl(uploadPath);
String minioPath = libraryService.processMannequins(uploadPath);
modelsDotDTO.setTemplateUrl(minioPath);
}else{
Assert.notNull(modelsDotDTO.getLibraryId(),"libraryId cannot be empty!");
Assert.notNull(modelsDotDTO.getTemplateId(),"templateId cannot be empty!");