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

fix: uni-cloud-stat provider error

上级 dfa46c6f
......@@ -446,10 +446,10 @@ const uni_cloud_config = () => {
const get_space = (config) => {
const uniCloudConfig = uni_cloud_config();
const { spaceId, provider, clientSecret } = uniCloudConfig;
const space_type = ['tcb', 'aliyun'];
const space_type = ['tcb', 'tencent', 'aliyun'];
const is_provider = space_type.indexOf(provider) !== -1;
const is_aliyun = provider === 'aliyun' && spaceId && clientSecret;
const is_tcb = provider === 'tcb' && spaceId;
const is_tcb = (provider === 'tcb' || provider === 'tencent') && spaceId;
if (is_provider && (is_aliyun || is_tcb)) {
return uniCloudConfig
......
......@@ -444,10 +444,10 @@ const uni_cloud_config = () => {
const get_space = (config) => {
const uniCloudConfig = uni_cloud_config();
const { spaceId, provider, clientSecret } = uniCloudConfig;
const space_type = ['tcb', 'aliyun'];
const space_type = ['tcb', 'tencent', 'aliyun'];
const is_provider = space_type.indexOf(provider) !== -1;
const is_aliyun = provider === 'aliyun' && spaceId && clientSecret;
const is_tcb = provider === 'tcb' && spaceId;
const is_tcb = (provider === 'tcb' || provider === 'tencent') && spaceId;
if (is_provider && (is_aliyun || is_tcb)) {
return uniCloudConfig
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册