收藏
回答

微信登录失败,无法获取code。怎么回事呢?

ionic 微信登录失败 此公众号并没有这些scope的权限, 错误码:10005

const scope = 'snsapi_userinfo';
const state = '_' + (+new Date());
// const state = '_' + (+new Date().getTime());
console.log('state:', state);
this.wechat.auth(scope, state).then(res => {
    console.log('code:', res);
}, (error) => {
    console.log('2错误信息:', error);
});


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

2 个回答

  • 张坤林
    张坤林
    2021-04-12

    不是应该先调用 wx.login?,错误码是什么:?

    2021-04-12
    有用
    回复 2
    • c
      c
      2021-04-12
      ionic cordova APP微信登录的, 错误码:此公众号并没有这些scope的权限, 错误码:10005
      2021-04-12
      回复
    • c
      c
      2021-04-12回复c
      说是普通错误。
      2021-04-12
      回复
  • c
    c
    2021-04-12

    我的是APP调用微信登录问题。并不是网页调用,不要给我推网页微信登录,谢谢。

    麻烦客服给我回复下。

    已解决。不麻烦各位了。lj wxkfpt客服。
    
    2021-04-12
    有用
    回复
登录 后发表内容
问题标签