提交 9a049762 编写于 作者: 雪洛's avatar 雪洛

feat: 自无unionid到有unionid状态进行登录时为用户补充unionid字段

上级 ad0a1bae
......@@ -108,7 +108,8 @@ module.exports = async function (params = {}) {
const extraData = {
qq_openid: {
[`${qqPlatform}_${appId}`]: openid
}
},
qq_unionid: unionid
}
if (type === 'register' && qqPlatform !== 'mp') {
const {
......
......@@ -110,7 +110,8 @@ module.exports = async function (params = {}) {
const extraData = {
wx_openid: {
[`${weixinPlatform}_${appId}`]: openid
}
},
wx_unionid: unionid
}
if (type === 'register' && weixinPlatform !== 'mp') {
const {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册