From d2a051a938e81b268cd393bb104e8960787c8035 Mon Sep 17 00:00:00 2001 From: Peanut Date: Sun, 26 Jul 2026 15:16:45 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9Anovel=5Fdone=20=E8=AF=BB=E5=8F=96?= =?UTF-8?q?=E7=B4=AF=E7=A7=AF=20stages=20=E5=B9=B6=E4=BC=A0=E5=85=A5=20sav?= =?UTF-8?q?eNovelResult?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/emotion/service/impl/ShortNovelServiceImpl.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/server/src/main/java/com/emotion/service/impl/ShortNovelServiceImpl.java b/server/src/main/java/com/emotion/service/impl/ShortNovelServiceImpl.java index 51f77c1..38f3cc9 100644 --- a/server/src/main/java/com/emotion/service/impl/ShortNovelServiceImpl.java +++ b/server/src/main/java/com/emotion/service/impl/ShortNovelServiceImpl.java @@ -385,6 +385,14 @@ public class ShortNovelServiceImpl implements ShortNovelService { if (stageMeta != null && !stageMeta.isEmpty()) { metadata.put("stages", stageMeta); } + // 读取跨流累积的中间步骤(clarification/outline),供详情页还原完整流程 + if (currentSessionId[0] != null) { + java.util.List stagesHistory = drainStages(currentSessionId[0]); + if (!stagesHistory.isEmpty()) { + metadata.put("stagesHistory", stagesHistory); + log.info("[ShortNovel SSE] 读取累积中间步骤: count={}", stagesHistory.size()); + } + } log.info("[ShortNovel SSE] 开始保存小说: userId={}, queryLength={}, textLength={}", currentUserId, originalQuery.length(), fullText.length()); Map saveResult = epicScriptDialogueServiceImpl.saveNovelResult(