Skip to content

Commit

Permalink
fix DYNAMIC_TYPE_FORWARD
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtafir committed Aug 7, 2024
1 parent f81d242 commit 20d1f5a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion models/bilibili/bilibili.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
2 changes: 1 addition & 1 deletion models/bilibili/bilibili.task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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秒
}
}
}
Expand Down

0 comments on commit 20d1f5a

Please sign in to comment.