feat: 去除多余参数

This commit is contained in:
橙子
2024-01-08 23:46:45 +08:00
parent a0fd35bf5e
commit ba8412faa7

View File

@@ -26,8 +26,7 @@ namespace Yi.Framework.AspNetCore.Authentication.OAuth.QQ
new KeyValuePair<string, string?>("redirect_uri",Options.RedirectUri), new KeyValuePair<string, string?>("redirect_uri",Options.RedirectUri),
new KeyValuePair<string, string?>("fmt","json"), new KeyValuePair<string, string?>("fmt","json"),
new KeyValuePair<string, string?>("need_openid","1"), new KeyValuePair<string, string?>("need_openid","1"),
new KeyValuePair<string, string?>("code",code), new KeyValuePair<string, string?>("code",code)
new KeyValuePair<string, string?>("state","true"),
}; };
var tokenModel = await SendHttpRequestAsync<QQAuthticationcationTokenResponse>(QQAuthenticationDefaults.TokenEndpoint, tokenQueryKv); var tokenModel = await SendHttpRequestAsync<QQAuthticationcationTokenResponse>(QQAuthenticationDefaults.TokenEndpoint, tokenQueryKv);