From f9bf8f9901985011f7f8c88ffa18b58ecefc5fcf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 11 Aug 2024 00:54:26 +0800 Subject: [PATCH] fix --- src/core/apis/file.ts | 2 +- src/core/apis/system.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {