BUGFIX: 模特preview;
This commit is contained in:
@@ -132,7 +132,8 @@ public class LibraryController {
|
|||||||
//存储template临时地址
|
//存储template临时地址
|
||||||
String path = calculateTempFileUrlNew(userInfo.getId());
|
String path = calculateTempFileUrlNew(userInfo.getId());
|
||||||
String uploadPath = minioUtil.upload("aida-tmp", path, file);
|
String uploadPath = minioUtil.upload("aida-tmp", path, file);
|
||||||
modelsDotDTO.setTemplateUrl(uploadPath);
|
String minioPath = libraryService.processMannequins(uploadPath);
|
||||||
|
modelsDotDTO.setTemplateUrl(minioPath);
|
||||||
}else{
|
}else{
|
||||||
Assert.notNull(modelsDotDTO.getLibraryId(),"libraryId cannot be empty!");
|
Assert.notNull(modelsDotDTO.getLibraryId(),"libraryId cannot be empty!");
|
||||||
Assert.notNull(modelsDotDTO.getTemplateId(),"templateId cannot be empty!");
|
Assert.notNull(modelsDotDTO.getTemplateId(),"templateId cannot be empty!");
|
||||||
|
|||||||
@@ -1865,7 +1865,10 @@ public class PythonService {
|
|||||||
skirt.setType(SysFileLevel2TypeEnum.SKIRT.getRealName());
|
skirt.setType(SysFileLevel2TypeEnum.SKIRT.getRealName());
|
||||||
skirt.setColor("none");
|
skirt.setColor("none");
|
||||||
skirt.setIcon("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");
|
skirt.setPath("aida-sys-image/images/female/trousers/trousers_974.jpg");
|
||||||
response.add(skirt);
|
response.add(skirt);
|
||||||
|
|
||||||
|
|||||||
@@ -69,4 +69,6 @@ public interface LibraryService extends IService<Library> {
|
|||||||
List<LibraryVo> getByUrlList(List<String> urlList,Long userId);
|
List<LibraryVo> getByUrlList(List<String> urlList,Long userId);
|
||||||
|
|
||||||
Boolean updateLibraryLevel2Type(LibraryLevel2TypeUpdateDTO libraryLevel2TypeUpdateDTO);
|
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 modelPathObject = new ModelPathObject();
|
||||||
modelPathObject.setModel_path(filePath);
|
modelPathObject.setModel_path(filePath);
|
||||||
OkHttpClient client = new OkHttpClient().newBuilder()
|
OkHttpClient client = new OkHttpClient().newBuilder()
|
||||||
|
|||||||
Reference in New Issue
Block a user