Skip to content

Commit

Permalink
fix DYNAMIC_TYPE_FORWARD
Browse files Browse the repository at this point in the history
snowtafir committed Aug 7, 2024

Verified

This commit was signed with the committer’s verified signature.
snowtafir 星雪
1 parent f2146b4 commit 59cbcab
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yz-yuki-plugin",
"version": "1.0.2-rc.0",
"version": "1.0.2-rc.1",
"description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件",
"author": "snowtafir",
"type": "module",
2 changes: 1 addition & 1 deletion src/models/bilibili/bilibili.query.ts
Original file line number Diff line number Diff line change
@@ -121,7 +121,7 @@ export class BiliQuery {
formatData.data.pubTs = moment(author.pub_ts * 1000).format("YYYY年MM月DD日 HH:mm:ss");
formatData.data.url = `${BiliDrawDynamicLinkUrl}${data.id_str}`;
formatData.data.pics = [data?.cover];
formatData.data.orig = this.formatDynamicData(data.orig);
formatData.data.orig = await this.formatDynamicData(data.orig);
formatData.data.category = "转发动态";
break;

2 changes: 1 addition & 1 deletion src/models/bilibili/bilibili.task.ts
Original file line number Diff line number Diff line change
@@ -92,7 +92,7 @@ export class BiliTask {
const bot_id: string[] | number[] = subInfoOfup.bot_id || [];
const { name, type } = subInfoOfup;
uidMap.set(subInfoOfup.uid, { chatIds, bot_id, upName: name, type, chatType });
await new Promise((resolve) => setTimeout(resolve, Math.floor(Math.random() * (4000 - 1000 + 1) + 1000))); // 随机延时1-4秒
await new Promise((resolve) => setTimeout(resolve, Math.floor(Math.random() * (8000 - 2000 + 1) + 2000))); // 随机延时2-8秒
}
}
}

0 comments on commit 59cbcab

Please sign in to comment.