mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
⚡ perf: 提升 #搜书 性能
This commit is contained in:
parent
ce9449b781
commit
63548f599d
@ -588,16 +588,18 @@ export class query extends plugin {
|
|||||||
})
|
})
|
||||||
await this.reply(await Bot.makeForwardMsg(bookMethods))
|
await this.reply(await Bot.makeForwardMsg(bookMethods))
|
||||||
// 异步获取直连
|
// 异步获取直连
|
||||||
this.getDirectDownload(title).then(async res => {
|
if (source === Buffer.from("ei1saWJpcmFyeQ==", "base64").toString("utf8")) {
|
||||||
const directDownloadUrls = res.map(item => {
|
this.getDirectDownload(title).then(async res => {
|
||||||
return {
|
const directDownloadUrls = res.map(item => {
|
||||||
message: {type: "text", text: item},
|
return {
|
||||||
nickname: this.e.sender.card || this.e.user_id,
|
message: {type: "text", text: item},
|
||||||
user_id: this.e.user_id,
|
nickname: this.e.sender.card || this.e.user_id,
|
||||||
}
|
user_id: this.e.user_id,
|
||||||
|
}
|
||||||
|
})
|
||||||
|
await this.reply(await Bot.makeForwardMsg(directDownloadUrls??"无直连下载"))
|
||||||
})
|
})
|
||||||
await this.reply(await Bot.makeForwardMsg(directDownloadUrls??"无直连下载"))
|
}
|
||||||
})
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user