mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
📃 docs: 修改搜书提示
This commit is contained in:
parent
106e71cfc7
commit
c062229ff1
@ -344,7 +344,7 @@ export class query extends plugin {
|
|||||||
async searchBookById(e) {
|
async searchBookById(e) {
|
||||||
let keyword = e.msg.replace(/#bookid/, "").trim();
|
let keyword = e.msg.replace(/#bookid/, "").trim();
|
||||||
if (_.isEmpty(keyword)) {
|
if (_.isEmpty(keyword)) {
|
||||||
e.reply(`请输入书名,例如:#搜书 12`);
|
e.reply(`请输入书名,例如:#bookid 13366067`);
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -357,7 +357,7 @@ export class query extends plugin {
|
|||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
const res = await getBookDetail(e, id, source);
|
const res = await getBookDetail(e, id, source);
|
||||||
await this.reply(await Bot.makeForwardMsg(res));
|
e.reply(await Bot.makeForwardMsg(res));
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
logger.error(err);
|
logger.error(err);
|
||||||
e.reply("搜书正在施工🚧");
|
e.reply("搜书正在施工🚧");
|
||||||
|
@ -178,7 +178,7 @@ async function getZHelper(e, keyword) {
|
|||||||
* @param e
|
* @param e
|
||||||
* @param id
|
* @param id
|
||||||
* @param source
|
* @param source
|
||||||
* @returns {Promise<AxiosResponse<any>>}
|
* @returns {Promise<Array>}
|
||||||
*/
|
*/
|
||||||
async function getBookDetail(e, id, source) {
|
async function getBookDetail(e, id, source) {
|
||||||
return axios
|
return axios
|
||||||
@ -215,8 +215,8 @@ async function getBookDetail(e, id, source) {
|
|||||||
const cleverPass = `https://rapidupload.1kbtool.com/${reqUrl}`;
|
const cleverPass = `https://rapidupload.1kbtool.com/${reqUrl}`;
|
||||||
const cleverPass2 = `https://rulite.1kbtool.com/${reqUrl}`;
|
const cleverPass2 = `https://rulite.1kbtool.com/${reqUrl}`;
|
||||||
return [
|
return [
|
||||||
`Libgen:${Libgen}`,
|
// `Libgen:${Libgen}`,
|
||||||
`ipfs:${ipfs}`,
|
// `ipfs:${ipfs}`,
|
||||||
`秒传:${cleverPass}`,
|
`秒传:${cleverPass}`,
|
||||||
`秒传Lite:${cleverPass2}`,
|
`秒传Lite:${cleverPass2}`,
|
||||||
].map(item => {
|
].map(item => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user