BUGFIX:sketch搜索出的图片去白边失败

This commit is contained in:
2025-06-19 18:24:07 +08:00
parent 18be52e806
commit 64b32dc3a3

View File

@@ -234,8 +234,8 @@ public class LLMServiceImpl implements LLMService {
executor.submit(() -> {
try {
// boolean validate = jwtTokenHelper.validateToken(token);
boolean validate = true;
boolean validate = jwtTokenHelper.validateToken(token);
// boolean validate = true;
if (validate) {
AuthPrincipalVo principal = jwtTokenHelper.parserToUser(token);
Long accountId = principal.getId();
@@ -405,9 +405,11 @@ public class LLMServiceImpl implements LLMService {
sketchList.forEach(sketch -> {
ReceiveCollectionElement receiveCollectionElement = new ReceiveCollectionElement();
String path = sketch.toString().replace("\\", "/");
receiveCollectionElement.setUrl(path);
String minioPath = sysImage + "/images" + path;
receiveCollectionElement.setUrl(minioPath);
receiveCollectionElement.setLevel1Type(CollectionLevel1TypeEnum.SKETCH_BOARD.getRealName());
receiveCollectionElement.setMinioUrl(minioUtil.getPreSignedUrl(sysImage + "/images" + path, CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
receiveCollectionElement.setLevel2Type(path.split("/")[2]);
receiveCollectionElement.setMinioUrl(minioUtil.getPreSignedUrl(minioPath, CommonConstant.MINIO_IMAGE_EXPIRE_TIME));
dataList.add(receiveCollectionElement);
});
ReceiveDesignParam receiveDesignParam = new ReceiveDesignParam();