fix: 修复 taskindex 错乱问题

This commit is contained in:
fuzhongyun 2026-01-13 17:50:28 +08:00
parent e538f49bea
commit 289ac1de7a
2 changed files with 2 additions and 2 deletions

View File

@ -430,7 +430,7 @@ func (d *Do) getTaskIdByChat(chat []entitys.Response) (taskId int32) {
// 通过 taskIndex 获取 taskId // 通过 taskIndex 获取 taskId
cond := builder.NewCond().And(builder.Eq{"`index`": taskIndex}) cond := builder.NewCond().And(builder.Eq{"`index`": taskIndex})
taskMap, _ := d.taskImpl.GetOneBySearch(&cond) taskMap, _ := d.taskImpl.GetOneBySearch(&cond)
if taskMap == nil { if taskMap == nil || taskMap["task_id"] == nil {
return return
} }

View File

@ -69,7 +69,7 @@ func (c *ChatHisQueryResponse) parseTaskIndex(taskIndex string) string {
reverseMap[v] = k reverseMap[v] = k
} }
if _, ok := reverseMap[taskIndex]; !ok { if _, ok := reverseMap[taskIndex]; ok {
return reverseMap[taskIndex] return reverseMap[taskIndex]
} }