diff --git a/es/utils/cos/ctyun.js b/es/utils/cos/ctyun.js index 0158b9751..efa753604 100644 --- a/es/utils/cos/ctyun.js +++ b/es/utils/cos/ctyun.js @@ -66,7 +66,7 @@ export default class CTYun { } } composeFileUrl(extraFile, context, style) { - const { config } = getConfig(context, 'Cos', 'qiniu'); + const { config } = getConfig(context, 'Cos', 'ctyun'); if (config) { let bucket = config.buckets.find((ele) => ele.name === extraFile.bucket); if (bucket) { diff --git a/lib/utils/cos/ctyun.js b/lib/utils/cos/ctyun.js index 1fa47565d..8c64ce013 100644 --- a/lib/utils/cos/ctyun.js +++ b/lib/utils/cos/ctyun.js @@ -68,7 +68,7 @@ class CTYun { } } composeFileUrl(extraFile, context, style) { - const { config } = (0, getContextConfig_1.getConfig)(context, 'Cos', 'qiniu'); + const { config } = (0, getContextConfig_1.getConfig)(context, 'Cos', 'ctyun'); if (config) { let bucket = config.buckets.find((ele) => ele.name === extraFile.bucket); if (bucket) { diff --git a/src/utils/cos/ctyun.ts b/src/utils/cos/ctyun.ts index 80a6c5f34..565a64a5c 100644 --- a/src/utils/cos/ctyun.ts +++ b/src/utils/cos/ctyun.ts @@ -107,7 +107,7 @@ export default class CTYun implements Cos { context: FRC, style?: string, ) { - const { config } = getConfig(context, 'Cos', 'qiniu'); + const { config } = getConfig(context, 'Cos', 'ctyun'); if (config) { let bucket = (config.buckets as CTYunCosConfig['buckets']).find((ele) => ele.name === extraFile.bucket!);