fix: 修复 taskindex 错乱问题
This commit is contained in:
parent
e538f49bea
commit
289ac1de7a
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue