Commit b94e00bf5b4d32cbef4977e0f269bf385e175875

Authored by wdn127929
2 parents c949fb6d 9d82a203

微信登录失败

... ... @@ -16,6 +16,7 @@ if (flutterRoot == null) {
def flutterVersionCode = "460"
if (flutterVersionCode == null) {
flutterVersionCode = '460'
}
... ...

5.06 KB | W: | H:

3.92 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

2.8 KB | W: | H:

2.27 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

7.7 KB | W: | H:

5.64 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

14.2 KB | W: | H:

9.47 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

22.2 KB | W: | H:

14.3 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin

40.2 KB | W: | H:

30.4 KB | W: | H:

  • 2-up
  • Swipe
  • Onion skin
... ... @@ -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) {
... ...