This commit is contained in:
xiaojunnuo
2025-04-25 01:44:15 +08:00
parent 308d4600ef
commit aec51e514c
4 changed files with 78 additions and 23 deletions
@@ -27,7 +27,7 @@ export class OssClientFactory {
throw new Error(`暂不支持此文件上传方式: ${type}`);
}
}
async createOssClientByType(type: string, opts: { rootDir: string; access: any; ctx: OssClientContext }) {
async createOssClientByType(type: string, opts: { rootDir?: string; access: any; ctx: OssClientContext }) {
const cls = await this.getClassByType(type);
if (cls) {
// @ts-ignore