From 3f2ab46d5720ce3a8ed0aa705cb62d9c8500c74d Mon Sep 17 00:00:00 2001 From: chenruilong Date: Fri, 2 Aug 2024 11:48:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=81=94=E7=99=BB=E6=9B=B4=E6=96=B0?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=BF=A1=E6=81=AF=E6=97=B6=E5=AD=98=E5=9C=A8?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E6=88=96=E8=80=85=E9=82=AE=E7=AE=B1?= =?UTF-8?q?=E6=97=B6=E6=B2=A1=E6=9C=89=E8=AE=BE=E7=BD=AE=E8=AE=A4=E8=AF=81?= =?UTF-8?q?=E7=8A=B6=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-id-pages-x/changelog.md | 2 ++ uni_modules/uni-id-pages-x/package.json | 2 +- .../uni-id-co/module/external/update-user-info.js | 8 ++++++++ .../uniCloud/cloudfunctions/uni-id-co/package.json | 4 ++-- 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/uni_modules/uni-id-pages-x/changelog.md b/uni_modules/uni-id-pages-x/changelog.md index ad36560..182667a 100644 --- a/uni_modules/uni-id-pages-x/changelog.md +++ b/uni_modules/uni-id-pages-x/changelog.md @@ -1,3 +1,5 @@ +## 1.1.3(2024-08-02) +- uni-id-co 修复联登更新用户信息接口存在手机号或者邮箱时没有设置认证状态 ## 1.1.2(2024-06-17) - 新增 支持iOS端一键登录(HBuilderX 4.18+) - 修复用户头像未更新的Bug diff --git a/uni_modules/uni-id-pages-x/package.json b/uni_modules/uni-id-pages-x/package.json index 4fbc8c9..a0ebb03 100644 --- a/uni_modules/uni-id-pages-x/package.json +++ b/uni_modules/uni-id-pages-x/package.json @@ -1,7 +1,7 @@ { "id": "uni-id-pages-x", "displayName": "uni-id-pages-x", - "version": "1.1.2", + "version": "1.1.3", "description": "适用于 uni-app-x 的云端一体简单、统一、可扩展的用户中心页面模版", "keywords": [ "用户中心", diff --git a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js index db30e02..36cebc6 100644 --- a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js +++ b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js @@ -200,6 +200,14 @@ module.exports = async function (params = {}) { realData.identities = user.identities } + if (mobile) { + realData.mobile_confirmed = 1 + } + + if (email) { + realData.email_confirmed = 1 + } + await userCollection.where(query).update(realData) return { diff --git a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/package.json b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/package.json index fe4fa04..c21459d 100644 --- a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/package.json +++ b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/package.json @@ -1,6 +1,6 @@ { "name": "uni-id-co", - "version": "1.1.20", + "version": "1.1.21", "description": "", "main": "index.js", "keywords": [], @@ -20,4 +20,4 @@ "cloudfunction-config": { "keepRunningAfterReturn": false } -} \ No newline at end of file +} -- GitLab