This commit is contained in:
2024-12-16 10:36:10 +08:00
parent 7042f3d11e
commit 76924ac0a5

View File

@@ -1,5 +1,4 @@
import fs from 'fs' import fs from 'fs'
import { URL } from 'url'
import { Tail } from 'tail' import { Tail } from 'tail'
import { update, update_explorer } from './update.js' import { update, update_explorer } from './update.js'
@@ -187,8 +186,8 @@ export function main() {
// 处理搜索日志 // 处理搜索日志
if (item.request.uri.startsWith('/api?query=')) { if (item.request.uri.startsWith('/api?query=')) {
const url = new URL(item.request.uri) const url = decodeURI(item.request.uri)
console.log(url, url.searchParams.get('query')) console.log(url)
return return
} }
}) })