mirror of
https://github.com/Moe-Sakura/Wrangler-API.git
synced 2026-03-18 04:53:22 +08:00
chore: 调整平台搜索日志输出
* VikaACG 平台:新增处理后 HTML 响应的调试日志,方便排查数据解析问题。 * TWOdfan 平台:移除不再需要的 API HTML 响应调试日志,精简控制台输出。
This commit is contained in:
@@ -51,6 +51,12 @@ async function searchVikaACG(game: string): Promise<PlatformSearchResult> {
|
||||
|
||||
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) {
|
||||
|
||||
@@ -22,12 +22,6 @@ async function searchTWOdfan(game: string): Promise<PlatformSearchResult> {
|
||||
}
|
||||
|
||||
const html: string = await response.text();
|
||||
|
||||
console.log(JSON.stringify({
|
||||
message: "2dfan API HTML Response",
|
||||
html: html,
|
||||
level: "info",
|
||||
}));
|
||||
|
||||
const matches = html.matchAll(REGEX);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user