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

feat(uniCloud): support other provider for uniCloud

上级 7597af3d
......@@ -10,6 +10,7 @@ import { uniValidateFunctionPlugin } from './validateFunction'
process.env.UNI_CLOUD_PROVIDER = JSON.stringify([])
const uniCloudSpaces: {
provider?: string
id: string
name: string
clientSecret?: string
......@@ -91,7 +92,7 @@ function initUniCloudEnv() {
uniCloudSpaces.map((space) => {
if (space.clientSecret) {
return {
provider: 'aliyun',
provider: space.provider || 'aliyun',
spaceName: space.name,
spaceId: space.id,
clientSecret: space.clientSecret,
......@@ -99,7 +100,7 @@ function initUniCloudEnv() {
}
} else {
return {
provider: 'tencent',
provider: space.provider || 'tencent',
spaceName: space.name,
spaceId: space.id,
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册