From 2ac3e0175ebc5fcb16e507ac5eed3589e18125b4 Mon Sep 17 00:00:00 2001 From: junleea <354425203@qq.com> Date: Sat, 26 Apr 2025 19:02:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0github=E8=AF=B7=E6=B1=82?= =?UTF-8?q?=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=BB=9F=E4=B8=80=E8=8E=B7=E5=8F=96?= =?UTF-8?q?url=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0=E4=B8=8D=E6=8B=A6?= =?UTF-8?q?=E6=88=AA=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- worker/github.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/worker/github.go b/worker/github.go index 2d8d789..adbb7be 100644 --- a/worker/github.go +++ b/worker/github.go @@ -4,6 +4,7 @@ import ( "StuAcaWorksAI/proto" "bytes" "encoding/json" + "fmt" "io" "net/http" ) @@ -59,5 +60,8 @@ func GetGitHubUserInfo(accessToken string) { "Authorization": "Bearer " + accessToken, } err, data := DoGetRequest(url, headers) - + if err != nil { + return + } + fmt.Println("User Info:", string(data)) }