From 543ac07fb637c62e8022668a9b95e141026b1697 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Thu, 14 Dec 2023 11:20:30 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E7=A7=BB=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cloudfunctions/uni-id-co/lib/utils/univerify.js | 7 ------- 1 file changed, 7 deletions(-) diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js index b64bef9..b3e3ca2 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/univerify.js @@ -3,14 +3,7 @@ async function getPhoneNumber ({ access_token, openid } = {}) { - const requiredParams = [] const univerifyConfig = (this.config.service && this.config.service.univerify) || {} - for (let i = 0; i < requiredParams.length; i++) { - const key = requiredParams[i] - if (!univerifyConfig[key]) { - throw new Error(`Missing config param: service.univerify.${key}`) - } - } return uniCloud.getPhoneNumber({ provider: 'univerify', appid: this.getUniversalClientInfo().appId, -- GitLab