修复部分bug
This commit is contained in:
parent
d314891126
commit
68f2c0fd8f
@ -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
Loading…
Reference in New Issue
Block a user