From 4fb50a9051380a763843f99b899c788d3cb7cc6f Mon Sep 17 00:00:00 2001 From: renzhiyuan <465386466@qq.com> Date: Sun, 28 Sep 2025 14:17:41 +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/biz/router.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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