koishi-plugin-bilibili-notify 3.1.5-alpha.0 → 3.1.5-alpha.2

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.
@@ -331,7 +331,7 @@ class ComRegister {
331
331
  initDynamicTimelineManager() {
332
332
  for (const sub of this.subManager) {
333
333
  if (sub.dynamic) {
334
- this.dynamicTimelineManager[sub.uid] = Math.floor(luxon_1.DateTime.now().toSeconds());
334
+ this.dynamicTimelineManager.set(sub.uid, Math.floor(luxon_1.DateTime.now().toSeconds()));
335
335
  }
336
336
  }
337
337
  }
@@ -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.0",
4
+ "version": "3.1.5-alpha.2",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
package/readme.md CHANGED
@@ -238,6 +238,8 @@ uid为必填参数,为要推送的UP主的UID,index为可选参数,为要
238
238
  - ver 3.1.3-alpha.0 移除:订阅超时; 新增:屏蔽专栏动态功能; 优化:改进了加载插件的错误提示;
239
239
  - ver 3.1.4-alpha.0 修复:动态只推送视频; 优化:动态视频链接将直接发送为视频链接;
240
240
  - ver 3.1.5-alpha.0 修复:潜在动态推送bug; 优化:现在动态监测无需等待,当插件初始化完成即开始监测、移除多余依赖、移除对 `cron` 服务的依赖、移除选项 `超时订阅`
241
+ - ver 3.1.5-alpha.1 修复:动态不推送的bug;
242
+ - ver 3.1.5-alpha.2 修复:潜在动态推送bug;
241
243
 
242
244
  ## 交流群
243
245