搜索失败不再终止
This commit is contained in:
		
							
								
								
									
										2
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								Makefile
									
									
									
									
									
								
							@@ -12,7 +12,7 @@ dev:
 | 
				
			|||||||
		wait
 | 
							wait
 | 
				
			||||||
 | 
					
 | 
				
			||||||
link:
 | 
					link:
 | 
				
			||||||
	ssh -NCPf ai -L 3306:localhost:3306 -L 19530:localhost:19530 -L 4080:localhost:4080 -L 5002:localhost:5002 -L 4306:localhost:4306 -L 8088:localhost:8088 -L 8087:localhost:8087
 | 
						ssh -NCPf ai -L 3306:localhost:3306 -L 19530:localhost:19530 -L 4080:localhost:4080 -L 5002:localhost:5002 -L 4306:localhost:4306 -L 8088:localhost:8088 -L 8087:localhost:8087 -L 6005:localhost:6005
 | 
				
			||||||
 | 
					
 | 
				
			||||||
# 编译项目
 | 
					# 编译项目
 | 
				
			||||||
build:
 | 
					build:
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -43,7 +43,7 @@ var SearchItems = &graphql.Field{
 | 
				
			|||||||
		// 发送 GET 请求
 | 
							// 发送 GET 请求
 | 
				
			||||||
		resp, err := http.Get(fmt.Sprintf("http://localhost:6005/api/get_search/hot?pagesize=%d", p.Args["first"]))
 | 
							resp, err := http.Get(fmt.Sprintf("http://localhost:6005/api/get_search/hot?pagesize=%d", p.Args["first"]))
 | 
				
			||||||
		if err != nil {
 | 
							if err != nil {
 | 
				
			||||||
			log.Fatalf("Failed to fetch data: %v", err)
 | 
								log.Println("Failed to fetch data: %v", err)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
		defer resp.Body.Close()
 | 
							defer resp.Body.Close()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user