From e933a95e977ae471e0461dfe4bba094aa7ed99a7 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: Wed, 7 May 2025 18:10:58 +0800 Subject: [PATCH] fix --- src/core/apis/file.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index ad689bc8..a0ff2e17 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -64,6 +64,7 @@ export class NTQQFileApi { } async getFileUrl(chatType: ChatType, peer: string, fileUUID?: string, file10MMd5?: string | undefined) { + if (this.core.apis.PacketApi.available) { try { if (chatType === ChatType.KCHATTYPEGROUP && fileUUID) { return this.core.apis.PacketApi.pkt.operation.GetGroupFileUrl(+peer, fileUUID);