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 b64bef992ec384f7872940173f85e3be0bd6751a..b3e3ca2903f751194a59978332b7f62887d16c73 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,