From 39b5dd2e35b6ca96a305a1f7d1a7033dba21090d Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Wed, 24 Sep 2025 18:01:10 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=93=E6=9E=84=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/services/chat.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/services/chat.go b/internal/services/chat.go index bb24ce1..a4efe66 100644 --- a/internal/services/chat.go +++ b/internal/services/chat.go @@ -104,6 +104,10 @@ func (h *ChatService) Chat(c *websocket.Conn) { err = h.routerBiz.RouteWithSocket(c, &req) if err != nil { log.Println("处理失败:", err) + entitys.MsgSend(c, entitys.Response{ + Content: err.Error(), + Type: entitys.ResponseErr, + }) continue } }