|
|
@@ -110,7 +110,7 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
/// 微信登录 |
|
|
|
Loading.show(context); |
|
|
|
SharesdkPlugin.getUserInfo(ShareSDKPlatforms.wechatSession, (SSDKResponseState state, Map userdata, SSDKError error) { |
|
|
|
Logger.log('state = ${state?.toString()}, userInfo = ${userdata?.toString()}'); |
|
|
|
Logger.log('state = ${state?.toString()}, userInfo = ${userdata?.toString()} , error = ${error?.code}'); |
|
|
|
if (state == SSDKResponseState.Success) { |
|
|
|
try { |
|
|
|
if (Platform.isIOS) { |
|
|
@@ -140,6 +140,7 @@ class _LoginPageContainerState extends State<LoginPageContainer> { |
|
|
|
|
|
|
|
Loading.dismiss(); |
|
|
|
} catch (e) { |
|
|
|
Logger.error(e?.toString()); |
|
|
|
Fluttertoast.showToast(msg: '登录失败'); |
|
|
|
Loading.dismiss(); |
|
|
|
} |
|
|
|