修正筛选
This commit is contained in:
		@@ -435,8 +435,6 @@ func NewSchema(config Config) (graphql.Schema, error) {
 | 
			
		||||
					Text     string
 | 
			
		||||
					Interest int
 | 
			
		||||
					Similar  int
 | 
			
		||||
					Follower    int
 | 
			
		||||
					Orientation string
 | 
			
		||||
					Sort     string
 | 
			
		||||
					Order    string
 | 
			
		||||
				}
 | 
			
		||||
@@ -452,7 +450,8 @@ func NewSchema(config Config) (graphql.Schema, error) {
 | 
			
		||||
				// 筛选条件
 | 
			
		||||
				for _, format := range argFormat {
 | 
			
		||||
					if p.Args[format] != nil {
 | 
			
		||||
						query.Where(goqu.Ex{fmt.Sprintf("web_images.%s = ?", format): p.Args[format]})
 | 
			
		||||
						fmt.Println(format, p.Args[format])
 | 
			
		||||
						query = query.Where(goqu.Ex{fmt.Sprintf("web_images.%s", format): p.Args[format]})
 | 
			
		||||
					}
 | 
			
		||||
				}
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user