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