From 0d0b9c1659216a1482100307427c92366e50ecba Mon Sep 17 00:00:00 2001 From: satori Date: Sat, 21 Dec 2024 11:14:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=90=9C=E7=B4=A2=E5=A4=B1=E8=B4=A5=E4=B8=8D?= =?UTF-8?q?=E5=86=8D=E7=BB=88=E6=AD=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 2 +- api/search.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()