处理搜索日志

This commit is contained in:
2024-12-16 10:32:27 +08:00
parent 368d23399a
commit 7042f3d11e

View File

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