yz-yuki-plugin 2.0.6-16 → 2.0.6-18
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.
|
@@ -99,7 +99,7 @@ class BiliQuery {
|
|
|
99
99
|
}) || [];
|
|
100
100
|
formatData.data.title = desc?.title;
|
|
101
101
|
// 文章内容过长,则尝试获取全文
|
|
102
|
-
if (desc?.summary?.text
|
|
102
|
+
if (String(desc?.summary?.text).length >= 480) {
|
|
103
103
|
const fullArticleContent = await this.getFullArticleContent(this.formatUrl(desc?.jump_url));
|
|
104
104
|
if (fullArticleContent) {
|
|
105
105
|
const { readInfo, articleType } = fullArticleContent;
|
|
@@ -227,7 +227,7 @@ class BiliQuery {
|
|
|
227
227
|
case 'RICH_TEXT_NODE_TYPE_EMOJI':
|
|
228
228
|
// 处理表情类型,使用 img 标签显示表情
|
|
229
229
|
const emoji = node.emoji;
|
|
230
|
-
return `<img src="${emoji?.icon_url}" alt="${emoji?.text}" title="${emoji?.text}" style="vertical-align: middle; width: ${emoji?.size}em; height: ${emoji?.size}em;">`;
|
|
230
|
+
return `<img src="${emoji?.icon_url}" alt="${emoji?.text}" title="${emoji?.text}" style="vertical-align: middle; width: ${emoji?.size ? Number(emoji?.size) * 2 : 2}em; height: ${emoji?.size ? Number(emoji?.size) * 2 : 2}em;">`;
|
|
231
231
|
case 'RICH_TEXT_NODE_TYPE_GOODS':
|
|
232
232
|
// 处理商品推广类型,使用官方的HTML标签写法
|
|
233
233
|
const goods_url = node?.jump_url;
|
|
@@ -346,7 +346,7 @@ class BiliQuery {
|
|
|
346
346
|
case 'RICH_TEXT_NODE_TYPE_EMOJI':
|
|
347
347
|
// 处理表情类型,使用 img 标签显示表情
|
|
348
348
|
const emoji = node?.rich?.emoji;
|
|
349
|
-
return `<img src="${emoji?.icon_url}" alt="${emoji?.text}" title="${emoji?.text}" style="vertical-align: middle; width: ${emoji?.size}em; height: ${emoji?.size}em;">`;
|
|
349
|
+
return `<img src="${emoji?.icon_url}" alt="${emoji?.text}" title="${emoji?.text}" style="vertical-align: middle; width: ${emoji?.size ? Number(emoji?.size) * 2 : 2}em; height: ${emoji?.size ? Number(emoji?.size) * 2 : 2}em;">`;
|
|
350
350
|
case 'RICH_TEXT_NODE_TYPE_GOODS':
|
|
351
351
|
// 处理商品推广类型,使用官方的HTML标签写法
|
|
352
352
|
const goods_url = node?.rich?.jump_url;
|