mirror of
https://github.com/certd/certd.git
synced 2026-04-23 19:57:27 +08:00
chore: oss 库 完善
This commit is contained in:
@@ -52,7 +52,7 @@ export class AliossClient {
|
||||
}
|
||||
}
|
||||
|
||||
async uploadFile(filePath: string, content: Buffer) {
|
||||
async uploadFile(filePath: string, content: Buffer | string) {
|
||||
await this.init();
|
||||
return await this.client.put(filePath, content);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user