结构修改
This commit is contained in:
parent
2dcf8a7e39
commit
39b5dd2e35
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue