提交 3f2ab46d 编写于 作者: crlfe's avatar crlfe 😲

fix: 联登更新用户信息时存在手机号或者邮箱时没有设置认证状态

上级 71a2480a
## 1.1.3(2024-08-02)
- uni-id-co 修复联登更新用户信息接口存在手机号或者邮箱时没有设置认证状态
## 1.1.2(2024-06-17) ## 1.1.2(2024-06-17)
- 新增 支持iOS端一键登录(HBuilderX 4.18+) - 新增 支持iOS端一键登录(HBuilderX 4.18+)
- 修复用户头像未更新的Bug - 修复用户头像未更新的Bug
......
{ {
"id": "uni-id-pages-x", "id": "uni-id-pages-x",
"displayName": "uni-id-pages-x", "displayName": "uni-id-pages-x",
"version": "1.1.2", "version": "1.1.3",
"description": "适用于 uni-app-x 的云端一体简单、统一、可扩展的用户中心页面模版", "description": "适用于 uni-app-x 的云端一体简单、统一、可扩展的用户中心页面模版",
"keywords": [ "keywords": [
"用户中心", "用户中心",
......
...@@ -200,6 +200,14 @@ module.exports = async function (params = {}) { ...@@ -200,6 +200,14 @@ module.exports = async function (params = {}) {
realData.identities = user.identities realData.identities = user.identities
} }
if (mobile) {
realData.mobile_confirmed = 1
}
if (email) {
realData.email_confirmed = 1
}
await userCollection.where(query).update(realData) await userCollection.where(query).update(realData)
return { return {
......
{ {
"name": "uni-id-co", "name": "uni-id-co",
"version": "1.1.20", "version": "1.1.21",
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"keywords": [], "keywords": [],
...@@ -20,4 +20,4 @@ ...@@ -20,4 +20,4 @@
"cloudfunction-config": { "cloudfunction-config": {
"keepRunningAfterReturn": false "keepRunningAfterReturn": false
} }
} }
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册