From 867f7bda6a71c1c11e17678019525d34951ab275 Mon Sep 17 00:00:00 2001 From: chenruilong Date: Fri, 2 Aug 2024 11:33:52 +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-id-co/module/external/update-user-info.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js index db30e02..36cebc6 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/module/external/update-user-info.js +++ b/uni_modules/uni-id-pages/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 { -- GitLab