From 289ac1de7a81c7ec3f0863a65a26b9ffad30da36 Mon Sep 17 00:00:00 2001 From: fuzhongyun <15339891972@163.com> Date: Tue, 13 Jan 2026 17:50:28 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20taskindex=20?= =?UTF-8?q?=E9=94=99=E4=B9=B1=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- internal/biz/do/ctx.go | 2 +- internal/entitys/chat_history.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/biz/do/ctx.go b/internal/biz/do/ctx.go index 9527177..a80858a 100644 --- a/internal/biz/do/ctx.go +++ b/internal/biz/do/ctx.go @@ -430,7 +430,7 @@ func (d *Do) getTaskIdByChat(chat []entitys.Response) (taskId int32) { // ι€šθΏ‡ taskIndex θŽ·ε– taskId cond := builder.NewCond().And(builder.Eq{"`index`": taskIndex}) taskMap, _ := d.taskImpl.GetOneBySearch(&cond) - if taskMap == nil { + if taskMap == nil || taskMap["task_id"] == nil { return } diff --git a/internal/entitys/chat_history.go b/internal/entitys/chat_history.go index 084adfe..f4aa8de 100644 --- a/internal/entitys/chat_history.go +++ b/internal/entitys/chat_history.go @@ -69,7 +69,7 @@ func (c *ChatHisQueryResponse) parseTaskIndex(taskIndex string) string { reverseMap[v] = k } - if _, ok := reverseMap[taskIndex]; !ok { + if _, ok := reverseMap[taskIndex]; ok { return reverseMap[taskIndex] }