From b24e176579466c483a7cbd1416647bbf19130751 Mon Sep 17 00:00:00 2001 From: Peanut Date: Tue, 21 Jul 2026 21:56:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=87=E7=AD=BE=E9=A1=BA=E5=BA=8F?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E5=85=A8=E9=83=A8/=E7=9F=AD=E7=AF=87/?= =?UTF-8?q?=E4=B8=AD=E7=AF=87/=E9=95=BF=E7=AF=87/=E6=94=B6=E8=97=8F?= =?UTF-8?q?=E5=A4=B9=EF=BC=9B=E5=A2=9E=E5=8A=A0SSE=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E8=AF=8A=E6=96=AD=E6=97=A5=E5=BF=97=E5=AE=9A=E4=BD=8Dnovel=5Fd?= =?UTF-8?q?one=E6=9C=AA=E8=A7=A6=E5=8F=91=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini-program/src/pages/main/ScriptLibraryView.vue | 4 ++-- .../java/com/emotion/service/impl/ShortNovelServiceImpl.java | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/mini-program/src/pages/main/ScriptLibraryView.vue b/mini-program/src/pages/main/ScriptLibraryView.vue index cec9bcd..06f7eb5 100644 --- a/mini-program/src/pages/main/ScriptLibraryView.vue +++ b/mini-program/src/pages/main/ScriptLibraryView.vue @@ -148,11 +148,11 @@ const activeMenuId = ref('') const deleteTarget = ref(null) const deletingScript = ref(false) -// 固定 5 个分类标签:全部 / 中篇 / 短篇 / 长篇 / 收藏夹 +// 固定 5 个分类标签:全部 / 短篇 / 中篇 / 长篇 / 收藏夹 const typeTabs = [ { label: '全部', value: 'all' }, - { label: '中篇', value: 'medium' }, { label: '短篇', value: 'short' }, + { label: '中篇', value: 'medium' }, { label: '长篇', value: 'long' }, { label: '收藏夹', value: 'favorite' } ] 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 a12a7e4..c6c4b61 100644 --- a/server/src/main/java/com/emotion/service/impl/ShortNovelServiceImpl.java +++ b/server/src/main/java/com/emotion/service/impl/ShortNovelServiceImpl.java @@ -127,6 +127,9 @@ public class ShortNovelServiceImpl implements ShortNovelService { try { JSONObject event = JSON.parseObject(dataStr); String type = event.getString("type"); + // 排查用:打印每个收到的事件类型,确认上游真实的"完成"事件名 + log.info("[ShortNovel SSE] 收到事件: type={}, session_id={}, keys={}", + type, event.getString("session_id"), event.keySet()); // 拦截 novel_done 事件,保存到数据库 if ("novel_done".equals(type)) {