当style为洛丽塔时无sketch和谷歌风控问题FIX

This commit is contained in:
litianxiang
2026-03-12 18:49:28 +08:00
parent 61b7f3072f
commit 5d53a8cd42

View File

@@ -683,9 +683,6 @@ public class PythonService {
// 其他所有情况,都回退到使用系统推荐
String categoryParam = elementVO.getModelSex().toLowerCase() + "_" + styleCategory.toLowerCase();
List<String> 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());