修复部分bug

This commit is contained in:
hoteas 2022-11-07 01:40:24 +08:00
parent d314891126
commit 68f2c0fd8f
2 changed files with 341 additions and 341 deletions

View File

@ -1113,10 +1113,10 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
childs := db.Select(v.GetString("link"), "id", Map{v.GetString("value") + "[~]": keywordStr})
childIds := Slice{}
for _, cv := range childs {
childIds = append(childIds, cv.GetString("id"))
childIds = append(childIds, cv.GetCeilInt64("id"))
}
if len(childIds) != 0 {
data[v.GetString("link")+".id"] = childIds
data[v.GetString("name")] = childIds
}
}
continue
@ -1134,10 +1134,10 @@ func (that *MakeCode) Search(table string, userData Map, data Map, req *http.Req
childs := db.Select(v.GetString("link"), "id", Map{v.GetString("value") + "[~]": keywordStr})
childIds := Slice{}
for _, cv := range childs {
childIds = append(childIds, cv.GetString("id"))
childIds = append(childIds, cv.GetCeilInt64("id"))
}
if len(childIds) != 0 {
keyword[v.GetString("link")+".id"] = childIds
keyword[v.GetString("name")] = childIds
}
}

File diff suppressed because it is too large Load Diff