diff --git a/internal/biz/router.go b/internal/biz/router.go index aff25e9..ff0adc8 100644 --- a/internal/biz/router.go +++ b/internal/biz/router.go @@ -238,11 +238,12 @@ func (r *AiRouterBiz) handleOtherTask(c *websocket.Conn, ch chan entitys.Respons func (r *AiRouterBiz) handleMatch(ctx context.Context, c *websocket.Conn, ch chan entitys.Response, matchJson *entitys.Match, tasks []model.AiTask, sysInfo model.AiSy) (err error) { if !matchJson.IsMatch { - ch <- entitys.Response{ + _ = entitys.MsgSend(c, entitys.Response{ Index: "", Content: matchJson.Reasoning, Type: entitys.ResponseText, - } + }) + return } var pointTask *model.AiTask