收藏
回答

使用我们App,选择用微信登陆,提示错误信息“获取用户信息失败”onResp返回NO是什么原因?

您好,我们iOS应用使用微信登陆,登陆失败。


这是我们工程师发的反馈:In WeChat documentation it was described as The third-party app calls this function, switches to WeChat interface and waits for onResp returned from WeChat. WeChat must calls onResp after the asynchronous processing. Possible requests include SendMessageToWXReq, etc. which returns Yes (success) or No (failure) .


So as we understand this method must return NO only in case of failure, but in reality it returns NO and successfully logged in to WeChat. That is the reason we face this issue.


SendAuthReq *req = [[SendAuthReq alloc] init];


req.scope = @"snsapi_userinfo";


if (![WXApi sendReq:req]) {


    [self callAuthCompletionWithResult:nil withError:[self generateAuthorizationError] isCancelled:NO];


}

回答关注问题邀请回答
收藏

2 个回答

  • 社区技术运营专员-娇华
    社区技术运营专员-娇华
    03-12

    你好,麻烦再重现一次,在手机微信那里上传下日志: 我->设置->帮助与反馈右上角有个上报日志的入口,麻烦提供一下微信号,时间点

    03-12
    赞同
    回复 2
    • 金煜
      金煜
      03-13
      已上传, 3月13, 9: 23. 微信号: amygdala-Enzyme
      03-13
      回复
    • 社区技术运营专员-娇华
      社区技术运营专员-娇华
      03-13回复金煜
      下次麻烦在自己的帖子下补充信息,再提醒我关注哈
      03-13
      回复
  • 磐石
    磐石
    03-12

    谢邀!但很抱歉,我不会iOS开发,无法帮到你。

    03-12
    赞同
    回复
登录 后发表内容
问题标签