搜索失败不再终止

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

@@ -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:

View File

@@ -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()