diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index e955603b..cd54d905 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -41,7 +41,7 @@ export class NTQQFileApi { } async getFileSize(filePath: string): Promise { - return await this.context.wrapper.util.getFileSize(filePath); + return await this.core.util.getFileSize(filePath); } async getVideoUrl(peer: Peer, msgId: string, elementId: string) { diff --git a/src/core/apis/system.ts b/src/core/apis/system.ts index 5bf3123e..4b23a7dc 100644 --- a/src/core/apis/system.ts +++ b/src/core/apis/system.ts @@ -10,7 +10,7 @@ export class NTQQSystemApi { } async hasOtherRunningQQProcess() { - return this.context.wrapper.util.hasOtherRunningQQProcess(); + return this.core.util.hasOtherRunningQQProcess(); } async ORCImage(filePath: string) {