BUGFIX: 模特preview;
This commit is contained in:
@@ -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!");
|
||||
|
||||
@@ -1865,7 +1865,10 @@ public class PythonService {
|
||||
skirt.setType(SysFileLevel2TypeEnum.SKIRT.getRealName());
|
||||
skirt.setColor("none");
|
||||
skirt.setIcon("none");
|
||||
skirt.setPrint(designPythonItemPrint);
|
||||
DesignPythonItemPrint designPythonItemPrint1 = new DesignPythonItemPrint();
|
||||
designPythonItemPrint1.setIfSingle(false);
|
||||
designPythonItemPrint1.setPrint_path_list(new ArrayList<>());
|
||||
skirt.setPrint(designPythonItemPrint1);
|
||||
skirt.setPath("aida-sys-image/images/female/trousers/trousers_974.jpg");
|
||||
response.add(skirt);
|
||||
|
||||
|
||||
@@ -69,4 +69,6 @@ public interface LibraryService extends IService<Library> {
|
||||
List<LibraryVo> getByUrlList(List<String> urlList,Long userId);
|
||||
|
||||
Boolean updateLibraryLevel2Type(LibraryLevel2TypeUpdateDTO libraryLevel2TypeUpdateDTO);
|
||||
|
||||
String processMannequins(String uploadPath);
|
||||
}
|
||||
|
||||
@@ -208,7 +208,8 @@ public class LibraryServiceImpl extends ServiceImpl<LibraryMapper, Library> impl
|
||||
}
|
||||
}
|
||||
|
||||
private String processMannequins(String filePath) {
|
||||
@Override
|
||||
public String processMannequins(String filePath) {
|
||||
ModelPathObject modelPathObject = new ModelPathObject();
|
||||
modelPathObject.setModel_path(filePath);
|
||||
OkHttpClient client = new OkHttpClient().newBuilder()
|
||||
|
||||
Reference in New Issue
Block a user