大佬们,问题如下:
已完成对接微信 App 登录,然后又新添加了AppleID登录,在点击苹果登录的时候苹果返回数据正常,但是后面又调起了微信App,各位有遇到过吗?
代码如下:
async appleidLogin() {
try {
const self = this;
uni.login({
provider: "apple",
success(res) {
uni.getUserInfo({
provider: 'apple',
async success(userInfo) {
res.fullName = userInfo.fullName;
const resultApi = await AppleIDLogion(res);
console.log(resultApi)
...
},
fail(err) {
},
})
},
fail(err) {
},
});
} catch (err) {
console.log(err)
}
}