From fc2bb6d8c3fc90c137a1d7788e79b11dff8c8934 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: Tue, 10 Sep 2024 18:58:27 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E7=A7=BB=E9=99=A4=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/core/apis/file.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/core/apis/file.ts b/src/core/apis/file.ts index 058f43f7..5a30fd4b 100644 --- a/src/core/apis/file.ts +++ b/src/core/apis/file.ts @@ -248,7 +248,6 @@ export class NTQQFileApi { } async downloadMedia(msgId: string, chatType: ChatType, peerUid: string, elementId: string, thumbPath: string, sourcePath: string, timeout = 1000 * 60 * 2, force: boolean = false) { - //logDebug('receive downloadMedia task', msgId, chatType, peerUid, elementId, thumbPath, sourcePath, timeout, force); // 用于下载收到的消息中的图片等 if (sourcePath && fs.existsSync(sourcePath)) { if (force) { @@ -361,7 +360,6 @@ export class NTQQFileApi { return IMAGE_HTTP_HOST + url; } } else if (fileMd5 || md5HexStr) { - // 没有url,需要自己拼接 return `${IMAGE_HTTP_HOST}/gchatpic_new/0/0-0-${(fileMd5 ?? md5HexStr)!.toUpperCase()}/0`; } this.context.logger.logDebug('图片url获取失败', element);