From 5d53a8cd428953b94f9ead49c331e7bd46241cf2 Mon Sep 17 00:00:00 2001 From: litianxiang Date: Thu, 12 Mar 2026 18:49:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BD=93style=E4=B8=BA=E6=B4=9B=E4=B8=BD?= =?UTF-8?q?=E5=A1=94=E6=97=B6=E6=97=A0sketch=E5=92=8C=E8=B0=B7=E6=AD=8C?= =?UTF-8?q?=E9=A3=8E=E6=8E=A7=E9=97=AE=E9=A2=98FIX?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/python/PythonService.java | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/main/java/com/ai/da/python/PythonService.java b/src/main/java/com/ai/da/python/PythonService.java index 4538c4d4..d94198d2 100644 --- a/src/main/java/com/ai/da/python/PythonService.java +++ b/src/main/java/com/ai/da/python/PythonService.java @@ -683,9 +683,6 @@ public class PythonService { // 其他所有情况,都回退到使用系统推荐 String categoryParam = elementVO.getModelSex().toLowerCase() + "_" + styleCategory.toLowerCase(); List recommentdUrlList = getSystemSketchByCategory(categoryParam, elementVO.getBrandId(), elementVO.getBrandScale(), elementVO.getStyle()); - if (recommentdUrlList.size() == 0) { - recommentdUrlList = getSystemSketchByCategory(categoryParam, elementVO.getBrandId(), elementVO.getBrandScale(), null); - } if (CollectionUtils.isEmpty(recommentdUrlList)) { throw new BusinessException("failed.to.obtain.system.sketch.recommendation"); } @@ -4056,7 +4053,7 @@ public class PythonService { if (imagePaths == null || imagePaths.isEmpty()) { log.warn("Empty recommendation result for {}", category); - return Collections.emptyList(); + return getSystemSketchByCategory(category,brandId,brandScale,null); } log.info("Received {} recommended images", imagePaths.size());