feat: 新增 dy 的 ck 失效后提示

This commit is contained in:
zhiyu1998 2024-07-19 16:21:03 +08:00
parent 0c743cdc0f
commit 1c3d72bc76

View File

@ -279,7 +279,9 @@ export class tools extends plugin {
headers,
});
// 如果失败进行3次重试
try {
const data = await retryAxiosReq(dyResponse)
// logger.info(data)
const item = await data.aweme_detail;
e.reply(`识别:抖音, ${ item.desc }`);
@ -334,6 +336,10 @@ export class tools extends plugin {
const comments = await this.douyinComment(douId);
e.reply(await Bot.makeForwardMsg(comments));
}
} catch (err) {
logger.error(err);
e.reply(`Cookie 过期或者 Cookie 没有填写,请参考\n${HELP_DOC}\n尝试无效后可以到官方QQ群[575663150]提出 bug 等待解决`)
}
return true;
}