搜索失败不再终止

This commit is contained in:
2024-12-21 11:14:42 +08:00
parent d0fb0a0c33
commit 0d0b9c1659
2 changed files with 2 additions and 2 deletions

View File

@@ -43,7 +43,7 @@ var SearchItems = &graphql.Field{
// 发送 GET 请求
resp, err := http.Get(fmt.Sprintf("http://localhost:6005/api/get_search/hot?pagesize=%d", p.Args["first"]))
if err != nil {
log.Fatalf("Failed to fetch data: %v", err)
log.Println("Failed to fetch data: %v", err)
}
defer resp.Body.Close()