在项目目录uniCloud--> cloudfunctions--> common--> uni-config-center --> uni-id--> config.json在也配置了appid和appsecret。和微信开放平台上的应用签名也对得上
y***@163.com
- 发布:2024-04-07 20:20
- 更新:2024-04-09 19:47
- 阅读:99
y***@163.com (作者)
weixinAuthService.authorize(function(res) {
resolve(res.code)
}, function(err) {
console.log(err)
reject(new Error('微信登录失败'))
});
这个请求好像一直没返回
2024-04-08 19:15
DCloud_UNI_Anne
回复 y***@163.com: 先检查plus.oauth.getServices中的services是否有weixin,如果正常再检查这里的res打印看看
2024-04-09 12:10
y***@163.com (作者)
回复 DCloud_UNI_Anne: weixinAuthService = services.find((service) => {
return service.id === 'weixin'
})
这个方法有执行 有走进去
2024-04-09 19:29
DCloud_UNI_Anne
回复 y***@163.com: 再打印信息排查这步是否有code
2024-04-10 11:25
y***@163.com (作者)
回复 DCloud_UNI_Anne: weixinAuthService.authorize(function(res) 这个方法里面打印吗 好像就是这个方法没返回 和鸿蒙系统有没有关系
2024-04-10 16:28
DCloud_UNI_Anne
回复 y***@163.com: 换个安卓手机测试看看
2024-04-11 18:08