mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-12-06 02:11:56 +00:00
✨ feat: 新增 dy 的 ck 失效后提示
This commit is contained in:
parent
0c743cdc0f
commit
1c3d72bc76
@ -279,7 +279,9 @@ export class tools extends plugin {
|
|||||||
headers,
|
headers,
|
||||||
});
|
});
|
||||||
// 如果失败进行3次重试
|
// 如果失败进行3次重试
|
||||||
|
try {
|
||||||
const data = await retryAxiosReq(dyResponse)
|
const data = await retryAxiosReq(dyResponse)
|
||||||
|
|
||||||
// logger.info(data)
|
// logger.info(data)
|
||||||
const item = await data.aweme_detail;
|
const item = await data.aweme_detail;
|
||||||
e.reply(`识别:抖音, ${ item.desc }`);
|
e.reply(`识别:抖音, ${ item.desc }`);
|
||||||
@ -334,6 +336,10 @@ export class tools extends plugin {
|
|||||||
const comments = await this.douyinComment(douId);
|
const comments = await this.douyinComment(douId);
|
||||||
e.reply(await Bot.makeForwardMsg(comments));
|
e.reply(await Bot.makeForwardMsg(comments));
|
||||||
}
|
}
|
||||||
|
} catch (err) {
|
||||||
|
logger.error(err);
|
||||||
|
e.reply(`Cookie 过期或者 Cookie 没有填写,请参考\n${HELP_DOC}\n尝试无效后可以到官方QQ群[575663150]提出 bug 等待解决`)
|
||||||
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user