| | |
| | | import { BoleOss } from '@bole-core/core'; |
| | | import { loadEnv } from '@build/index'; |
| | | import AliOSS from 'ali-oss'; |
| | | import * as accountServices from '@/services/api/Account'; |
| | | import * as authServices from '@/services/api/auth'; |
| | | |
| | | export class OssManager { |
| | | private static OssInstance: BoleOss; |
| | | |
| | | private static async getOssSTS() { |
| | | return await accountServices.getOssSTS({ |
| | | showLoading: false, |
| | | }); |
| | | return await authServices.getAliyunOSSAcs( |
| | | {}, |
| | | { |
| | | showLoading: false, |
| | | } |
| | | ); |
| | | } |
| | | |
| | | public static async getOssInstance() { |