uni-starter版本: 1.2.6
出现的问题:本地调试能正常登录,发布后点击微信登录无响应(注:之前一直都正常的,只是突然登录不了)
尝试过方法:
1、在没有选择不校验域名选项下调试没有报错
2、想在登录页面显示错误信息,但绑定数据一直都没有返回
跟踪代码在
components/uni-quick-login/uni-quick-login.vue
第255行执行 uni.login 时没有打印出success 或 fail 的返回信息,complete能打印
uni.login({
"provider": type,
"onlyAuthorize": true, //请勿直接使用前端获取的unionid或openid直接用于登录,前端的数据都是不可靠的
"univerifyStyle": this.univerifyStyle,
complete: (e) => {
console.log(e);
uni.hideLoading()
},
success: async e => {
console.log(e);
if (type == 'apple') {
let res = await this.getUserInfo({
provider: "apple"
})
Object.assign(e.authResult, res.userInfo)
}
this.login(type == 'weixin' ? e.code : e.authResult, type)
},
fail: async (err) => {
console.log(err);
}
})
},
请问有遇到过类似问题的大佬吗?求指导~~~
0 个回复