yz-yuki-plugin 2.0.8-1 → 2.0.8-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.
- package/CHANGELOG.md +1 -0
- package/README.md +1 -2
- package/lib/models/bilibili/bilibili.main.query.js +7 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/README.md
CHANGED
|
@@ -6,8 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
- 支持 群聊/私聊 订阅B站动态和微博动态,支持定时推送,支持手动触发推送,支持简单查询B站/微博用户信息。
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+

|
|
11
10
|
|
|
12
11
|
# 🚩运行环境:
|
|
13
12
|
1. 系统:
|
|
@@ -42,15 +42,16 @@ class BiliQuery {
|
|
|
42
42
|
return { url: item?.url, width: item?.width, height: item?.height };
|
|
43
43
|
}) || [];
|
|
44
44
|
additional = data?.modules?.module_dynamic?.additional;
|
|
45
|
+
formatData.data.title = desc?.title || '';
|
|
45
46
|
formatData.data.content = this.parseRichTextNodes(desc?.summary?.rich_text_nodes || desc?.summary?.text, additional) || '';
|
|
46
47
|
}
|
|
47
48
|
else {
|
|
48
49
|
desc = data?.modules?.module_dynamic?.desc || {};
|
|
49
50
|
pics = data?.modules?.module_dynamic?.major?.draw?.items;
|
|
50
51
|
pics = [];
|
|
52
|
+
formatData.data.title = desc?.title || '';
|
|
51
53
|
formatData.data.content = this.parseRichTextNodes(desc?.text);
|
|
52
54
|
}
|
|
53
|
-
formatData.data.title = '';
|
|
54
55
|
formatData.data.url = `${BiliDrawDynamicLinkUrl}${data.id_str}`;
|
|
55
56
|
formatData.data.pubTime = author.pub_time;
|
|
56
57
|
formatData.data.pubTs = moment(author.pub_ts * 1000).format('YYYY年MM月DD日 HH:mm:ss');
|
|
@@ -65,6 +66,7 @@ class BiliQuery {
|
|
|
65
66
|
return { url: item?.url, width: item?.width, height: item?.height };
|
|
66
67
|
});
|
|
67
68
|
additional = data?.modules?.module_dynamic?.additional;
|
|
69
|
+
formatData.data.title = desc?.title || '';
|
|
68
70
|
formatData.data.content = this.parseRichTextNodes(desc?.summary?.rich_text_nodes || desc?.summary?.text, additional) || '';
|
|
69
71
|
}
|
|
70
72
|
else if (majorType === 'MAJOR_TYPE_DRAW') {
|
|
@@ -73,6 +75,7 @@ class BiliQuery {
|
|
|
73
75
|
pics = pics.map((item) => {
|
|
74
76
|
return { url: item?.url, width: item?.width, height: item?.height };
|
|
75
77
|
});
|
|
78
|
+
formatData.data.title = desc?.title || '';
|
|
76
79
|
formatData.data.content = this.parseRichTextNodes(desc?.rich_text_nodes || desc?.text) || '';
|
|
77
80
|
}
|
|
78
81
|
else {
|
|
@@ -81,9 +84,9 @@ class BiliQuery {
|
|
|
81
84
|
pics = pics.map((item) => {
|
|
82
85
|
return { url: item?.src };
|
|
83
86
|
});
|
|
87
|
+
formatData.data.title = desc?.title || '';
|
|
84
88
|
formatData.data.content = this.parseRichTextNodes(desc?.text);
|
|
85
89
|
}
|
|
86
|
-
formatData.data.title = '';
|
|
87
90
|
formatData.data.url = `${BiliDrawDynamicLinkUrl}${data.id_str}`;
|
|
88
91
|
formatData.data.pubTime = author.pub_time;
|
|
89
92
|
formatData.data.pubTs = moment(author.pub_ts * 1000).format('YYYY年MM月DD日 HH:mm:ss');
|
|
@@ -453,6 +456,7 @@ class BiliQuery {
|
|
|
453
456
|
msg_meta = `B站【${upName}】图文动态推送:`;
|
|
454
457
|
msg = [
|
|
455
458
|
msg_meta,
|
|
459
|
+
...(desc?.title ? [`\n--------------------`, `\n${desc.title}`] : []),
|
|
456
460
|
`\n--------------------`,
|
|
457
461
|
`\n正文:`,
|
|
458
462
|
`\n${this.dynamicContentLimit(content, setData)}`,
|
|
@@ -508,6 +512,7 @@ class BiliQuery {
|
|
|
508
512
|
msg_meta = `B站【${upName}】图文动态推送:`;
|
|
509
513
|
msg = [
|
|
510
514
|
msg_meta,
|
|
515
|
+
...(desc?.title ? [`\n--------------------`, `\n${desc.title}`] : []),
|
|
511
516
|
`\n--------------------`,
|
|
512
517
|
`\n正文:`,
|
|
513
518
|
`\n${this.dynamicContentLimit(content, setData)}`,
|