From c8d3050c70361bf1b822e81ff9f0b13e7668e4b8 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Thu, 27 Nov 2025 15:24:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E7=A7=BB=E9=99=A4=E5=BE=AA=E7=8E=AF?= =?UTF-8?q?=E6=8C=82=E8=B5=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/tools_bot/bug_optimization_submit.go | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/internal/tools_bot/bug_optimization_submit.go b/internal/tools_bot/bug_optimization_submit.go index d388c39..71b7dd7 100644 --- a/internal/tools_bot/bug_optimization_submit.go +++ b/internal/tools_bot/bug_optimization_submit.go @@ -8,7 +8,6 @@ import ( "context" "encoding/json" "fmt" - "time" "github.com/gofiber/fiber/v2/log" "github.com/google/uuid" @@ -77,16 +76,7 @@ func (w *BotTool) BugOptimizationSubmit(ctx context.Context, requireData *entity // 记录 task_id 到 session_id 的映射 w.SetTaskMapping(body.TaskId, requireData.Session) entitys.ResLog(requireData.Ch, requireData.Match.Index, "问题记录中") - - // 等待异步回调完成再结束 - for { - sessionID, ok := w.GetSessionByTaskID(body.TaskId) - if !ok || sessionID != requireData.Session { - break - } - entitys.ResLoading(requireData.Ch, requireData.Match.Index, "问题记录中...") - time.Sleep(time.Second) - } + entitys.ResLoading(requireData.Ch, requireData.Match.Index, "问题记录中...") return }