From e50eba4e1bf63ca31c320a92b21a468163b916e7 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Wed, 27 Jul 2022 16:36:20 +0800 Subject: [PATCH] fix: getOauthProvider --- .../uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js index a7987bd..131c3d9 100644 --- a/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js +++ b/uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/lib/utils/config.js @@ -42,7 +42,7 @@ class ConfigUtils { try { configContent = require('uni-config-center/uni-id/config.json') } catch (error) { - throw new Error('Invalid config file\n' + error.messages) + throw new Error('Invalid config file\n' + error.message) } if (configContent[0]) { return Object.values(configContent) @@ -97,7 +97,7 @@ class ConfigUtils { } = {}) { const config = this.getPlatformConfig() const clientPlatform = this.platform - const oatuhProivder = this.getOauthConfig({ + const oatuhProivder = this.getOauthProvider({ provider }) const requireConfigKey = requiredConfig[`${clientPlatform}.${oatuhProivder}`] || [] -- GitLab