diff --git a/models/bilibili/bilibili.query.ts b/models/bilibili/bilibili.query.ts index 97c8452..14a1c58 100644 --- a/models/bilibili/bilibili.query.ts +++ b/models/bilibili/bilibili.query.ts @@ -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; diff --git a/models/bilibili/bilibili.task.ts b/models/bilibili/bilibili.task.ts index 63f5541..410d73b 100644 --- a/models/bilibili/bilibili.task.ts +++ b/models/bilibili/bilibili.task.ts @@ -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秒 } } }