From 64b32dc3a3b1a779c7e905dd87dc253764d62402 Mon Sep 17 00:00:00 2001 From: xupei Date: Thu, 19 Jun 2025 18:24:07 +0800 Subject: [PATCH] =?UTF-8?q?BUGFIX:sketch=E6=90=9C=E7=B4=A2=E5=87=BA?= =?UTF-8?q?=E7=9A=84=E5=9B=BE=E7=89=87=E5=8E=BB=E7=99=BD=E8=BE=B9=E5=A4=B1?= =?UTF-8?q?=E8=B4=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/ai/da/service/impl/LLMServiceImpl.java | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/main/java/com/ai/da/service/impl/LLMServiceImpl.java b/src/main/java/com/ai/da/service/impl/LLMServiceImpl.java index 6ff1d890..5d7715de 100644 --- a/src/main/java/com/ai/da/service/impl/LLMServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/LLMServiceImpl.java @@ -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();