From 02c58767bd0ac5685031964c2752a3dec5f8b18c Mon Sep 17 00:00:00 2001 From: Peanut Date: Sun, 19 Jul 2026 12:18:54 +0800 Subject: [PATCH] =?UTF-8?q?fix(server):=20SSE=20=E4=BB=A3=E7=90=86?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E6=B6=88=E6=81=AF=E4=B8=8D=E5=86=8D=E6=9A=B4?= =?UTF-8?q?=E9=9C=B2=E5=8E=9F=E5=A7=8B=E5=BC=82=E5=B8=B8=E4=BF=A1=E6=81=AF?= =?UTF-8?q?=E7=BB=99=E5=AE=A2=E6=88=B7=E7=AB=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/emotion/service/impl/ShortNovelServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 117ccb6..a12a7e4 100644 --- a/server/src/main/java/com/emotion/service/impl/ShortNovelServiceImpl.java +++ b/server/src/main/java/com/emotion/service/impl/ShortNovelServiceImpl.java @@ -168,7 +168,7 @@ public class ShortNovelServiceImpl implements ShortNovelService { errorEvent.put("type", "error"); JSONObject errorPayload = new JSONObject(); errorPayload.put("code", "UPSTREAM_ERROR"); - errorPayload.put("message", e.getMessage() != null ? e.getMessage() : "外部服务异常"); + errorPayload.put("message", "外部服务异常,请稍后重试"); errorEvent.put("payload", errorPayload); emitter.send(SseEmitter.event().name("error").data(errorEvent.toJSONString())); } catch (Exception ignored) {