From 90e047aae893caee2ce8ab12996145d9d27256dd Mon Sep 17 00:00:00 2001 From: Jurangren Date: Sat, 23 Aug 2025 01:40:50 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E8=B0=83=E6=95=B4=E5=B9=B3=E5=8F=B0?= =?UTF-8?q?=E6=90=9C=E7=B4=A2=E6=97=A5=E5=BF=97=E8=BE=93=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * VikaACG 平台:新增处理后 HTML 响应的调试日志,方便排查数据解析问题。 * TWOdfan 平台:移除不再需要的 API HTML 响应调试日志,精简控制台输出。 --- src/platforms/gal/VikaACG.ts | 6 ++++++ src/platforms/patch/TWOdfan.ts | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/platforms/gal/VikaACG.ts b/src/platforms/gal/VikaACG.ts index 6343b7d..4e9b2b8 100644 --- a/src/platforms/gal/VikaACG.ts +++ b/src/platforms/gal/VikaACG.ts @@ -51,6 +51,12 @@ async function searchVikaACG(game: string): Promise { const matches = html.replaceAll('\\/', '/').replaceAll('\\\\', '\\').matchAll(REGEX); + console.log(JSON.stringify({ + message: "VikaACG API HTML Response", + html: html.replaceAll('\\/', '/').replaceAll('\\\\', '\\'), + level: "info", + })); + const items: SearchResultItem[] = []; for (const match of matches) { if (match.groups?.NAME && match.groups?.URL) { diff --git a/src/platforms/patch/TWOdfan.ts b/src/platforms/patch/TWOdfan.ts index 2bcece6..5fa81c6 100644 --- a/src/platforms/patch/TWOdfan.ts +++ b/src/platforms/patch/TWOdfan.ts @@ -22,12 +22,6 @@ async function searchTWOdfan(game: string): Promise { } const html: string = await response.text(); - - console.log(JSON.stringify({ - message: "2dfan API HTML Response", - html: html, - level: "info", - })); const matches = html.matchAll(REGEX);