uni-id-pages模块,微信小程序登录,报错无效的用户查询,不知道什么原因,帮忙看下
30天只能改一次
- 发布:2022-06-27 18:52
- 更新:2022-07-04 11:07
- 阅读:1621
最佳回复
升级uni-id-pages到1.0.2此问题已修复,另外务必注意升级为uni-id-co + uni-id-pages牵扯到字段调整,详情参考: 升级为uni-id-co + uni-id-pages
修改uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/common/constants.js文件中的USER_IDENTIFIER 对象为:
const USER_IDENTIFIER = {
username: 'username',
mobile: 'mobile',
email: 'email',
wx_unionid: 'wechat-account',
'wx_openid.app-plus': 'wechat-account',
'wx_openid.app': 'wechat-account',
'wx_openid.mp-weixin': 'wechat-account',
'wx_openid.mp': 'wechat-account',
'wx_openid.h5': 'wechat-account',
'wx_openid.web': 'wechat-account',
qq_unionid: 'qq-account',
'qq_openid.app-plus': 'qq-account',
'qq_openid.app': 'qq-account',
'qq_openid.mp-weixin': 'qq-account',
'qq_openid.mp': 'qq-account',
ali_openid: 'alipay-account',
apple_openid: 'alipay-account'
}
-
const USER_IDENTIFIER = {
username: 'username',
mobile: 'mobile',
email: 'email',
wx_unionid: 'wechat-account',
'wx_openid.app': 'wechat-account',
'wx_openid.mp': 'wechat-account',
'wx_openid.h5': 'wechat-account',
'wx_openid.web': 'wechat-account',
qq_unionid: 'qq-account',
'qq_openid.app': 'qq-account',
'qq_openid.mp': 'qq-account',
ali_openid: 'alipay-account',
apple_openid: 'alipay-account'
}2022-07-04 11:03