Commit 9d82a203ad382183b4bb09cc96778d0ac373c40a

Authored by wdn127929
1 parent 5fa10868

微信登录失败

... ... @@ -31,7 +31,7 @@
<string>weixin</string>
<key>CFBundleURLSchemes</key>
<array>
<string>wx85aa3cdd0f791e65</string>
<string>wx4d105e36a36a6139</string>
</array>
</dict>
</array>
... ...
... ... @@ -187,7 +187,7 @@ class LoginState extends State<LoginPage> with WidgetsBindingObserver {
///获取微信登录access_token
_getAccessToken(String code) async {
Response response = await DioUtil.getInstance().getDio().get(
"https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx85aa3cdd0f791e65&secret=87c9a23c2e6032b2da75af6b0efc5424&code=$code&grant_type=authorization_code");
"https://api.weixin.qq.com/sns/oauth2/access_token?appid=wx4d105e36a36a6139&secret=90ba794b30d2fe388309149174874603&code=$code&grant_type=authorization_code");
LogUtil.v("access_token:${response.toString()}");
Map<String, dynamic> responseData = json.decode(response.data.toString());
if (responseData["errcode"] != null) {
... ...