koishi-plugin-bilibili-notify 1.0.5-alpha.0 → 1.0.6-alpha.0

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.
@@ -560,16 +560,6 @@ class ComRegister {
560
560
  timePoint = items[0].modules.module_author.pub_ts
561
561
  }
562
562
  } */
563
- // 更新时间点为最新发布动态的发布时间
564
- switch (num) {
565
- case 1: {
566
- if (items[0].modules.module_tag) { // 存在置顶动态
567
- timePoint = items[num].modules.module_author.pub_ts;
568
- }
569
- break;
570
- }
571
- case 0: timePoint = items[num].modules.module_author.pub_ts;
572
- }
573
563
  // 推送该条动态
574
564
  let attempts = 3;
575
565
  for (let i = 0; i < attempts; i++) {
@@ -602,6 +592,16 @@ class ComRegister {
602
592
  }
603
593
  }
604
594
  }
595
+ // 更新时间点为最新发布动态的发布时间
596
+ switch (num) {
597
+ case 1: {
598
+ if (items[0].modules.module_tag) { // 存在置顶动态
599
+ timePoint = items[num].modules.module_author.pub_ts;
600
+ }
601
+ break;
602
+ }
603
+ case 0: timePoint = items[num].modules.module_author.pub_ts;
604
+ }
605
605
  // 如果这是遍历的最后一条,将时间点设置为这条动态的发布时间
606
606
  /* if (num === 1) timePoint = items[num].modules.module_author.pub_ts
607
607
  if (num === 0) {
@@ -300,7 +300,7 @@ class GenerateImg extends koishi_1.Service {
300
300
  <div class="card-forward">
301
301
  <div class="forward-userinfo">
302
302
  <img class="forward-avatar" src="${forwardUserAvatarUrl}" alt="">
303
- <span class="forward-username">${forwardUserName} ${forwardInfo}</span>
303
+ <span class="forward-username">${forwardUserName} ${forwardInfo ? forwardInfo : ''}</span>
304
304
  </div>
305
305
  <div class="forward-main">
306
306
  ${forwardMain}
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": "1.0.5-alpha.0",
4
+ "version": "1.0.6-alpha.0",
5
5
  "contributors": [
6
6
  "Akokko <admin@akokko.com>"
7
7
  ],
package/readme.md CHANGED
@@ -81,6 +81,7 @@
81
81
  - ver 1.0.3 修复了一些bug,提供用户自己选择推送卡片字体样式的选项
82
82
  - ver 1.0.4 修复了重复推送的bug,提供用户选择推送卡片渲染方式的选项
83
83
  - ver 1.0.5 修复了用户非法篡改数据库内容可能导致程序异常运行的bug,修复了UP主开播动态推送空白卡片的bug
84
+ - ver 1.0.6 修复了转发动态转发信息出现undefined的bug,优化了动态推送的逻辑
84
85
 
85
86
  ## 感谢
86
87