From fd29452e0caecdd83a77ca3774f20fcff84224bf Mon Sep 17 00:00:00 2001 From: xupei Date: Thu, 24 Jul 2025 11:33:28 +0800 Subject: [PATCH] =?UTF-8?q?BUGFIX:flux=E8=AF=B7=E6=B1=82=E5=A4=B1=E8=B4=A5?= =?UTF-8?q?=E5=90=8E=E7=9A=84=E6=97=A5=E5=BF=97=E6=89=93=E5=8D=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java b/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java index 3ac9dbaf..fe2efcb8 100644 --- a/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java +++ b/src/main/java/com/ai/da/service/impl/GenerateServiceImpl.java @@ -2779,8 +2779,6 @@ public class GenerateServiceImpl extends ServiceImpl i case SKETCH_BOARD: prompt = "a single item of sketch of " + prompt + ", clean white background, simple lines"; break; - default: - log.warn("未知类型 type:{}", func); } } JSONObject requestBody = new JSONObject(); @@ -2813,6 +2811,7 @@ public class GenerateServiceImpl extends ServiceImpl i log.info("flux 发起生成请求返回结果: {}", respObj); String taskId = respObj.getStr("id"); if (StringUtil.isNullOrEmpty(taskId)) { + requestBody.set("input_image", imagePath); log.error("flux生成任务创建失败,func :{}, requestBody:{}", func.getName(), requestBody); throw new BusinessException("Failed to generate task. Please retry later."); }