添加github请求,添加统一获取url接口添加不拦截接口

This commit is contained in:
junleea 2025-04-26 19:02:23 +08:00
parent 22474e459f
commit 2ac3e0175e
1 changed files with 5 additions and 1 deletions

View File

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