u012575301
哈哈哈嘿嘿嘻嘻
2016-03-23 03:25

ios 微信第三方登录snsPlatform.loginClickHandler这一句崩溃

  • objective-c
  • ios

UMSocialSnsPlatform *snsPlatform = [UMSocialSnsPlatformManager getSocialPlatformWithName:UMShareToWechatSession];

全选复制放进笔记
snsPlatform.loginClickHandler(self,[UMSocialControllerService defaultControllerService],YES,^(UMSocialResponseEntity *response){

if (response.responseCode == UMSResponseCodeSuccess) {

    UMSocialAccountEntity *snsAccount = [[UMSocialAccountManager socialAccountDictionary]valueForKey:UMShareToWechatSession];

    NSLog(@"username is %@, uid is %@, token is %@ url is %@",snsAccount.userName,snsAccount.usid,snsAccount.accessToken,snsAccount.iconURL);

}

});

这是代码 我把snsPlatform.loginClickHandler这个回调去了就不会崩溃 我不去掉的话点击登录等几秒钟后就崩溃了 然后看日志报了一个莫名其妙的错 [GXBusiness addPhoneInfoWithClientId:deviceToken:phone isNowUpdate:] 看都没看过 有人知道这是为什么吗

而且很奇怪 只有我把应用卸载了的第一次点击登录会崩溃 以后只要你不卸载 去点击登录就不会崩溃了 真是奇怪 求解答啊

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

4条回答