修复部分bug
This commit is contained in:
+4
-4
@@ -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})
|
childs := db.Select(v.GetString("link"), "id", Map{v.GetString("value") + "[~]": keywordStr})
|
||||||
childIds := Slice{}
|
childIds := Slice{}
|
||||||
for _, cv := range childs {
|
for _, cv := range childs {
|
||||||
childIds = append(childIds, cv.GetString("id"))
|
childIds = append(childIds, cv.GetCeilInt64("id"))
|
||||||
}
|
}
|
||||||
if len(childIds) != 0 {
|
if len(childIds) != 0 {
|
||||||
data[v.GetString("link")+".id"] = childIds
|
data[v.GetString("name")] = childIds
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
continue
|
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})
|
childs := db.Select(v.GetString("link"), "id", Map{v.GetString("value") + "[~]": keywordStr})
|
||||||
childIds := Slice{}
|
childIds := Slice{}
|
||||||
for _, cv := range childs {
|
for _, cv := range childs {
|
||||||
childIds = append(childIds, cv.GetString("id"))
|
childIds = append(childIds, cv.GetCeilInt64("id"))
|
||||||
}
|
}
|
||||||
if len(childIds) != 0 {
|
if len(childIds) != 0 {
|
||||||
keyword[v.GetString("link")+".id"] = childIds
|
keyword[v.GetString("name")] = childIds
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+337
-337
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user