elasticsearch
This commit is contained in:
@@ -499,11 +499,12 @@ func NewSchema(config Config) (graphql.Schema, error) {
|
||||
item = append(item, num)
|
||||
}
|
||||
|
||||
id_list = append(id_list, item)
|
||||
query = query.Where("web_images.id IN (?)", item)
|
||||
|
||||
if len(id_list) == 0 {
|
||||
return map[string]interface{}{"list": []Image{}, "total": 0}, nil
|
||||
}
|
||||
//id_list = append(id_list, item)
|
||||
//if len(id_list) == 0 {
|
||||
// return map[string]interface{}{"list": []Image{}, "total": 0}, nil
|
||||
//}
|
||||
}
|
||||
|
||||
// 筛选:相似图像
|
||||
|
Reference in New Issue
Block a user