结构修改

This commit is contained in:
renzhiyuan 2025-09-24 18:01:10 +08:00
parent 2dcf8a7e39
commit 39b5dd2e35
1 changed files with 4 additions and 0 deletions

View File

@ -104,6 +104,10 @@ func (h *ChatService) Chat(c *websocket.Conn) {
err = h.routerBiz.RouteWithSocket(c, &req) err = h.routerBiz.RouteWithSocket(c, &req)
if err != nil { if err != nil {
log.Println("处理失败:", err) log.Println("处理失败:", err)
entitys.MsgSend(c, entitys.Response{
Content: err.Error(),
Type: entitys.ResponseErr,
})
continue continue
} }
} }