-
Notifications
You must be signed in to change notification settings - Fork 463
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
重定向成功没有跳转页面 #30
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
// 1. Get Authorization Code
func GetAuthCode(w http.ResponseWriter, r *http.Request) {
}
// 2. Get Access Token
func GetToken(w http.ResponseWriter, r *http.Request) {
fmt.Println("Getting")
code := r.FormValue("code")
params := url.Values{}
params.Add("grant_type", "authorization_code")
params.Add("client_id", AppId)
params.Add("client_secret", AppKey)
params.Add("code", code)
str := fmt.Sprintf("%s&redirect_uri=%s", params.Encode(), redirectURI)
loginURL := fmt.Sprintf("%s?%s", "https://graph.qq.com/oauth2.0/token", str)
}gin框架接入的时候为什么没有扫码的页面
The text was updated successfully, but these errors were encountered: