uni.login({
provider: 'univerify',
success(res){
console.log(res)
},
fail(res){
console.log(res)
}
}) // end of login

- 发布:2022-10-11 13:59
- 更新:2023-06-06 06:54
- 阅读:3072
产品分类: uniapp/App
PC开发环境操作系统: Windows
PC开发环境操作系统版本号: win10
HBuilderX类型: 正式
HBuilderX版本号: 3.6.4
手机系统: Android
手机系统版本号: Android 10
手机厂商: 三星
手机机型: Galaxy S9
页面类型: vue
vue版本: vue2
打包方式: 云端
项目创建方式: HBuilderX
示例代码:
操作步骤:
登录页面调用 >> 云打包后,或者直接运行到自定义基座,安卓均报错,ios 正常
uni.login({
provider: 'univerify',
success(res){
console.log(res)
},
fail(res){
console.log(res)
}
}) // end of login
登录页面调用 >> 云打包后,或者直接运行到自定义基座,安卓均报错,ios 正常
uni.login({
provider: 'univerify',
success(res){
console.log(res)
},
fail(res){
console.log(res)
}
}) // end of login
预期结果:
可以正常使用弹出一键登录页面
可以正常使用弹出一键登录页面
实际结果:
{"errMsg":"preLogin:fail -20102预登录失败","errCode":30005,"code":30005,"appid":"xxx","uid":"xxx"}
{"errMsg":"preLogin:fail -20102预登录失败","errCode":30005,"code":30005,"appid":"xxx","uid":"xxx"}
bug描述:
一键登录,同一套代码,ios 正常,安卓提示:20102 错误代码,官方文档没有描述该错误代码的意思?
{"errMsg":"preLogin:fail -20102预登录失败","errCode":30005,"code":30005,"appid":"xxx","uid":"xxx"}

xjr - uniapp 全栈开发
iOS 真机报错
{
"errMsg": "preLogin:fail 未能完成操作。(GeYanSdkDomain错误-20102。)",
"errCode": -20102,
"code": -20102,
"appid": "pPyZWvH3Fa6PXba10aJ009",
"metadata": {},
"uid": "gtc_267d67e1d37b22b89ad6ad449745400d64"
}
1***@qq.com
哥,解决了没
2024-09-14 12:02