mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-12-05 18:01:56 +00:00
🌟 feat: Linux命令查询增加缓存,速度更快!
This commit is contained in:
parent
e39992cfe7
commit
f6caf50e67
@ -291,7 +291,7 @@ export class query extends plugin {
|
|||||||
// 没有在缓存里,直接发起网络请求
|
// 没有在缓存里,直接发起网络请求
|
||||||
const resp = await fetch(LINUX_QUERY.replace("{}", order), {
|
const resp = await fetch(LINUX_QUERY.replace("{}", order), {
|
||||||
headers: {
|
headers: {
|
||||||
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.142.86 Safari/537.36"
|
"User-Agent": COMMON_USER_AGENT
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
linuxOrderData = (await resp.json()).data;
|
linuxOrderData = (await resp.json()).data;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user