From 4e094a0fc117bcc175833a75c890bccc54e3fe74 Mon Sep 17 00:00:00 2001 From: Anne_LXM <54163582+anne-lxm@users.noreply.github.com> Date: Fri, 26 Jan 2024 20:55:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0uni-id-co?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../uniCloud/cloudfunctions/uni-id-co/lib/utils/sms.js | 2 -- .../uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js | 2 +- .../uni-id-co/module/dev/get-supported-login-type.js | 3 +-- .../uniCloud/cloudfunctions/uni-id-co/package.json | 2 +- 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/lib/utils/sms.js b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/lib/utils/sms.js index 21c70e9..ae9b7af 100644 --- a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/lib/utils/sms.js +++ b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/lib/utils/sms.js @@ -22,8 +22,6 @@ async function sendSmsCode ({ } = {}) { const requiredParams = [ 'name', - 'smsKey', - 'smsSecret', 'codeExpiresIn' ] const smsConfig = (this.config.service && this.config.service.sms) || {} diff --git a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js index 33c17c0..b64bef9 100644 --- a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js +++ b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js @@ -3,7 +3,7 @@ async function getPhoneNumber ({ access_token, openid } = {}) { - const requiredParams = ['apiKey', 'apiSecret'] + const requiredParams = [] const univerifyConfig = (this.config.service && this.config.service.univerify) || {} for (let i = 0; i < requiredParams.length; i++) { const key = requiredParams[i] diff --git a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/dev/get-supported-login-type.js b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/dev/get-supported-login-type.js index 476e234..c28f3bd 100644 --- a/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/dev/get-supported-login-type.js +++ b/uni_modules/uni-id-pages-x/uniCloud/cloudfunctions/uni-id-co/module/dev/get-supported-login-type.js @@ -4,8 +4,7 @@ function isMobileCodeSupported () { } function isUniverifySupport () { - const config = this.config - return !!(config.service && config.service.univerify && config.service.univerify.apiKey) + return true } function isWeixinSupported () { 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 1e4ca46..d7427b8 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.15", + "version": "1.1.17", "description": "", "main": "index.js", "keywords": [], -- GitLab