From 76924ac0a5696c007c67f0216e8ad3ec87716667 Mon Sep 17 00:00:00 2001 From: satori Date: Mon, 16 Dec 2024 10:36:10 +0800 Subject: [PATCH] debug --- main.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/main.js b/main.js index 0093ba0..90dadb9 100644 --- a/main.js +++ b/main.js @@ -1,5 +1,4 @@ import fs from 'fs' -import { URL } from 'url' import { Tail } from 'tail' import { update, update_explorer } from './update.js' @@ -187,8 +186,8 @@ export function main() { // 处理搜索日志 if (item.request.uri.startsWith('/api?query=')) { - const url = new URL(item.request.uri) - console.log(url, url.searchParams.get('query')) + const url = decodeURI(item.request.uri) + console.log(url) return } })