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

This commit is contained in:
litianxiang
2026-03-12 18:49:57 +08:00
parent 5d53a8cd42
commit 8bdb49d25c

View File

@@ -4051,7 +4051,7 @@ public class PythonService {
String responseBody = response.body().string();
List<String> imagePaths = JSON.parseArray(responseBody, String.class);
if (imagePaths == null || imagePaths.isEmpty()) {
if (imagePaths == null || imagePaths.isEmpty()|| imagePaths.size() == 0) {
log.warn("Empty recommendation result for {}", category);
return getSystemSketchByCategory(category,brandId,brandScale,null);
}