提交 e50eba4e 编写于 作者: 雪洛's avatar 雪洛

fix: getOauthProvider

上级 8bb3416f
...@@ -42,7 +42,7 @@ class ConfigUtils { ...@@ -42,7 +42,7 @@ class ConfigUtils {
try { try {
configContent = require('uni-config-center/uni-id/config.json') configContent = require('uni-config-center/uni-id/config.json')
} catch (error) { } catch (error) {
throw new Error('Invalid config file\n' + error.messages) throw new Error('Invalid config file\n' + error.message)
} }
if (configContent[0]) { if (configContent[0]) {
return Object.values(configContent) return Object.values(configContent)
...@@ -97,7 +97,7 @@ class ConfigUtils { ...@@ -97,7 +97,7 @@ class ConfigUtils {
} = {}) { } = {}) {
const config = this.getPlatformConfig() const config = this.getPlatformConfig()
const clientPlatform = this.platform const clientPlatform = this.platform
const oatuhProivder = this.getOauthConfig({ const oatuhProivder = this.getOauthProvider({
provider provider
}) })
const requireConfigKey = requiredConfig[`${clientPlatform}.${oatuhProivder}`] || [] const requireConfigKey = requiredConfig[`${clientPlatform}.${oatuhProivder}`] || []
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册