perf: 提升 #搜书 性能

This commit is contained in:
zhiyu1998 2023-03-15 12:46:28 +08:00
parent ce9449b781
commit 63548f599d

View File

@ -588,6 +588,7 @@ export class query extends plugin {
})
await this.reply(await Bot.makeForwardMsg(bookMethods))
// 异步获取直连
if (source === Buffer.from("ei1saWJpcmFyeQ==", "base64").toString("utf8")) {
this.getDirectDownload(title).then(async res => {
const directDownloadUrls = res.map(item => {
return {
@ -598,6 +599,7 @@ export class query extends plugin {
})
await this.reply(await Bot.makeForwardMsg(directDownloadUrls??"无直连下载"))
})
}
});
}