微信登录失败,无法获取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);
});