diff --git a/uni_modules/uni-id-pages-x/changelog.md b/uni_modules/uni-id-pages-x/changelog.md index ad36560385776abdfcc21b4e7c8837730714f668..182667a98d57eaf62734ff87622855f371ef37d4 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 4fbc8c9e1587be1316e9a5266140def09950d30c..a0ebb0399635ed5de9c2add5a977264bfd16ad02 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 db30e02270cbe12d0916ebc7c39d9105b9f93135..36cebc6884292c9f6e54b78c2fd5d264fbea17af 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 fe4fa049bc49f25602679e4d0ed9b7154a99e748..c21459dba91d2546d95f47bcc9013d55e54654ac 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 +}