koishi-plugin-bilibili-notify 1.0.4-rc.0 → 1.0.4-rc.1
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.
- package/lib/comRegister.js +13 -4
- package/package.json +1 -1
- package/readme.md +4 -4
package/lib/comRegister.js
CHANGED
|
@@ -553,13 +553,22 @@ class ComRegister {
|
|
|
553
553
|
// 寻找发布时间比时间点更晚的动态
|
|
554
554
|
if (items[num].modules.module_author.pub_ts > timePoint) {
|
|
555
555
|
// 更新时间点为当前动态的发布时间
|
|
556
|
-
if (num === 1) { // 寻找倒数第二条动态
|
|
556
|
+
/* if (num === 1) { // 寻找倒数第二条动态
|
|
557
557
|
if (items[0].modules.module_tag) { // 存在置顶动态
|
|
558
|
-
timePoint = items[num].modules.module_author.pub_ts
|
|
558
|
+
timePoint = items[num].modules.module_author.pub_ts
|
|
559
|
+
} else {
|
|
560
|
+
timePoint = items[0].modules.module_author.pub_ts
|
|
559
561
|
}
|
|
560
|
-
|
|
561
|
-
|
|
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;
|
|
562
570
|
}
|
|
571
|
+
case 0: timePoint = items[num].modules.module_author.pub_ts;
|
|
563
572
|
}
|
|
564
573
|
// 推送该条动态
|
|
565
574
|
let attempts = 3;
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -76,10 +76,10 @@
|
|
|
76
76
|
|
|
77
77
|
## 更新日志
|
|
78
78
|
|
|
79
|
-
ver 1.0.1 修复了一些bug,提供用户自己选择动态检测时间的选项
|
|
80
|
-
ver 1.0.2 修复时间bug和字体乱码问题
|
|
81
|
-
ver 1.0.3 修复了一些bug,提供用户自己选择推送卡片字体样式的选项
|
|
82
|
-
ver 1.0.4 修复了重复推送的bug,提供用户选择推送卡片渲染方式的选项
|
|
79
|
+
- ver 1.0.1 修复了一些bug,提供用户自己选择动态检测时间的选项
|
|
80
|
+
- ver 1.0.2 修复时间bug和字体乱码问题
|
|
81
|
+
- ver 1.0.3 修复了一些bug,提供用户自己选择推送卡片字体样式的选项
|
|
82
|
+
- ver 1.0.4 修复了重复推送的bug,提供用户选择推送卡片渲染方式的选项
|
|
83
83
|
|
|
84
84
|
## 感谢
|
|
85
85
|
|