处理搜索日志
This commit is contained in:
4
main.js
4
main.js
@@ -1,4 +1,5 @@
|
|||||||
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'
|
||||||
|
|
||||||
@@ -186,7 +187,8 @@ export function main() {
|
|||||||
|
|
||||||
// 处理搜索日志
|
// 处理搜索日志
|
||||||
if (item.request.uri.startsWith('/api?query=')) {
|
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
|
return
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user