koishi-plugin-bilibili-notify 3.1.5-alpha.1 → 3.1.5-alpha.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -574,7 +574,7 @@ class ComRegister {
574
574
  // 判断动态发布时间是否大于时间线
575
575
  if (timeline < postTime) {
576
576
  // 获取订阅对象
577
- const sub = this.subManager[uid];
577
+ const sub = this.subManager.find(sub => sub.uid === uid);
578
578
  // 推送该条动态
579
579
  const buffer = await (0, utils_1.withRetry)(async () => {
580
580
  // 渲染图片
@@ -746,7 +746,7 @@ class ComRegister {
746
746
  // logger
747
747
  this.logger.info("需要推送该条动态,开始推送...");
748
748
  // 获取订阅对象
749
- const sub = this.subManager[uid];
749
+ const sub = this.subManager.find(sub => sub.uid === uid);
750
750
  // logger
751
751
  this.logger.info("开始渲染推送卡片...");
752
752
  // 推送该条动态
@@ -822,8 +822,11 @@ class ComRegister {
822
822
  // logger
823
823
  this.logger.info("动态中的图片发送完毕!");
824
824
  }
825
- // 将当前动态存入currentPushDyn
826
- currentPushDyn[uid] = item;
825
+ // 如果当前订阅对象已存在更早推送,则无需再更新时间线
826
+ if (!currentPushDyn[uid]) {
827
+ // 将当前动态存入currentPushDyn
828
+ currentPushDyn[uid] = item;
829
+ }
827
830
  // logger
828
831
  this.logger.info("动态推送完毕!");
829
832
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "koishi-plugin-bilibili-notify",
3
3
  "description": "Koishi bilibili notify plugin",
4
- "version": "3.1.5-alpha.1",
4
+ "version": "3.1.5-alpha.3",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
package/readme.md CHANGED
@@ -239,6 +239,8 @@ uid为必填参数,为要推送的UP主的UID,index为可选参数,为要
239
239
  - ver 3.1.4-alpha.0 修复:动态只推送视频; 优化:动态视频链接将直接发送为视频链接;
240
240
  - ver 3.1.5-alpha.0 修复:潜在动态推送bug; 优化:现在动态监测无需等待,当插件初始化完成即开始监测、移除多余依赖、移除对 `cron` 服务的依赖、移除选项 `超时订阅`
241
241
  - ver 3.1.5-alpha.1 修复:动态不推送的bug;
242
+ - ver 3.1.5-alpha.2 修复:潜在动态推送bug;
243
+ - ver 3.1.5-alpha.3 修复:动态推送时报错:dynamicDetect generateDynamicImg() 推送卡片发送失败,原因:Cannot read properties of undefined (reading 'card');
242
244
 
243
245
  ## 交流群
244
246