diff --git a/src/platforms/gal/VikaACG.ts b/src/platforms/gal/VikaACG.ts index a6e9d8b..ebc1575 100644 --- a/src/platforms/gal/VikaACG.ts +++ b/src/platforms/gal/VikaACG.ts @@ -48,6 +48,12 @@ async function searchVikaACG(game: string): Promise { // The response is a JSON-encoded string containing HTML. // .json() will parse the JSON and unescape the string content. const html: string = await response.text(); + + console.log(JSON.stringify({ + message: "2dfan API HTML Response", + html: html, + level: "info", + })); const matches = html.matchAll(REGEX); diff --git a/src/platforms/patch/TWOdfan.ts b/src/platforms/patch/TWOdfan.ts index c445f12..d4fb0d1 100644 --- a/src/platforms/patch/TWOdfan.ts +++ b/src/platforms/patch/TWOdfan.ts @@ -24,8 +24,12 @@ async function searchTWOdfan(game: string): Promise { if (!response.ok) { throw new Error(`资源平台 SearchAPI 响应异常状态码 ${response.status}`); } - - console.log("2dfan API HTML Response:", response.text()); + + console.log(JSON.stringify({ + message: "2dfan API HTML Response", + html: response.text(), + level: "info", + })); const data = await response.json() as TwoDFanResponse; const html = data.subjects;