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.
- package/lib/comRegister.js +10 -10
- package/lib/generateImg.js +1 -1
- package/package.json +1 -1
- package/readme.md +1 -0
package/lib/comRegister.js
CHANGED
|
@@ -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) {
|
package/lib/generateImg.js
CHANGED
|
@@ -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