mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 08:09:19 +00:00
🎈 perf: 提升搜书性能
This commit is contained in:
parent
1f55f38af0
commit
2a917f20f9
@ -586,7 +586,9 @@ export class query extends plugin {
|
||||
})
|
||||
await this.reply(await Bot.makeForwardMsg(bookMethods))
|
||||
// 异步获取直连
|
||||
if (source === Buffer.from("ei1saWJpcmFyeQ==", "base64").toString("utf8")) {
|
||||
console.log(source);
|
||||
console.log(source === Buffer.from("ei1saWJyYXJ5", "base64").toString("utf8"));
|
||||
if (source === Buffer.from("ei1saWJyYXJ5", "base64").toString("utf8")) {
|
||||
this.getDirectDownload(title).then(async res => {
|
||||
const directDownloadUrls = res.map(item => {
|
||||
return {
|
||||
@ -595,7 +597,9 @@ export class query extends plugin {
|
||||
user_id: this.e.user_id,
|
||||
}
|
||||
})
|
||||
await this.reply(await Bot.makeForwardMsg(directDownloadUrls??"无直连下载"))
|
||||
if (directDownloadUrls.length) {
|
||||
await this.reply(await Bot.makeForwardMsg(directDownloadUrls))
|
||||
}
|
||||
})
|
||||
}
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user