diff --git a/Makefile b/Makefile index 6dc1dd0..df298ea 100644 --- a/Makefile +++ b/Makefile @@ -12,7 +12,7 @@ dev: wait 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: diff --git a/api/search.go b/api/search.go index bee5b91..b8de4dd 100644 --- a/api/search.go +++ b/api/search.go @@ -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()