From 3d3960a3b3d1057db9d2f4016512915e7a5c517d Mon Sep 17 00:00:00 2001
From: Administrator <15274802129@163.com>
Date: Thu, 25 Sep 2025 09:56:21 +0800
Subject: [PATCH] feat(ai): 集成百炼工作流实现AI流式对话功能 - 新增百炼工作流SDK相关依赖和工具类 - 实现llmInvokeStreamingWithThink方法用于流式调用 - 配置API Key和应用ID以连接百炼平台 - 启用思考模式(enableThinking)和思维输出(hasThoughts) - 处理流式响应并封装为FebsResponse返回 - 添加异常处理机制捕获API调用错误 - 移除原有的静态提示词配置逻辑 -重构answerStreamV3接口直接调用新实现

---
 src/main/java/cc/mrbird/febs/mall/service/impl/ClothesTypeServiceImpl.java |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/src/main/java/cc/mrbird/febs/mall/service/impl/ClothesTypeServiceImpl.java b/src/main/java/cc/mrbird/febs/mall/service/impl/ClothesTypeServiceImpl.java
index c585ba9..25e79e9 100644
--- a/src/main/java/cc/mrbird/febs/mall/service/impl/ClothesTypeServiceImpl.java
+++ b/src/main/java/cc/mrbird/febs/mall/service/impl/ClothesTypeServiceImpl.java
@@ -215,6 +215,10 @@
         clothesPattern.setOrderNum(dto.getOrderNum());
         clothesPattern.setImage(dto.getImage());
         clothesPattern.setContent(dto.getContent());
+        clothesPattern.setBoxWidth(dto.getBoxWidth());
+        clothesPattern.setBoxHeight(dto.getBoxHeight());
+        clothesPattern.setLeftPercent(dto.getLeftPercent());
+        clothesPattern.setTopPercent(dto.getTopPercent());
         clothesPatternMapper.insert(clothesPattern);
         return new FebsResponse().success().message("操作成功");
     }
@@ -233,6 +237,11 @@
                             .set(ClothesPattern::getContent, dto.getContent())
                             .set(ClothesPattern::getOrderNum, dto.getOrderNum())
                             .set(ClothesPattern::getPrice, dto.getPrice())
+                            .set(ClothesPattern::getBoxHeight, dto.getBoxHeight())
+                            .set(ClothesPattern::getBoxWidth, dto.getBoxWidth())
+                            .set(ClothesPattern::getLeftPercent, dto.getLeftPercent())
+                            .set(ClothesPattern::getTopPercent, dto.getTopPercent())
+
             );
         }
         return new FebsResponse().success().message("操作成功");
@@ -255,6 +264,10 @@
         clothesLocation.setContent(dto.getContent());
         clothesLocation.setPrice(dto.getPrice());
         clothesLocation.setOrderNum(dto.getOrderNum());
+        clothesLocation.setBoxHeight(dto.getBoxHeight());
+        clothesLocation.setBoxWidth(dto.getBoxWidth());
+        clothesLocation.setLeftPercent(dto.getLeftPercent());
+        clothesLocation.setTopPercent(dto.getTopPercent());
         clothesLocationMapper.insert(clothesLocation);
         return new FebsResponse().success().message("操作成功");
     }
@@ -273,6 +286,10 @@
                             .set(ClothesLocation::getPrice, dto.getPrice())
                             .set(ClothesLocation::getImage, dto.getImage())
                             .set(ClothesLocation::getContent, dto.getContent())
+                            .set(ClothesLocation::getBoxHeight, dto.getBoxHeight())
+                            .set(ClothesLocation::getBoxWidth, dto.getBoxWidth())
+                            .set(ClothesLocation::getLeftPercent, dto.getLeftPercent())
+                            .set(ClothesLocation::getTopPercent, dto.getTopPercent())
             );
         }
         return new FebsResponse().success().message("操作成功");

--
Gitblit v1.9.1