🌟 feat: Linux命令查询增加缓存,速度更快!

This commit is contained in:
zhiyu1998 2024-08-24 14:52:06 +08:00
parent e39992cfe7
commit f6caf50e67

View File

@ -291,7 +291,7 @@ export class query extends plugin {
// 没有在缓存里,直接发起网络请求
const resp = await fetch(LINUX_QUERY.replace("{}", order), {
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;