Skip to content

Commit

Permalink
optimize: QrCode strict string
Browse files Browse the repository at this point in the history
  • Loading branch information
snowtafir committed Nov 13, 2024
1 parent db28a6c commit 80e9fbe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions models/bilibili/bilibili.main.query.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class BiliQuery {
desc = data?.modules?.module_dynamic?.major?.archive || {};
formatData.data.title = desc?.title;
formatData.data.content = this.parseRichTextNodes(desc?.desc);
formatData.data.url = this.formatUrl(desc?.jump_url);
formatData.data.url = this.formatUrl(desc?.jump_url) || '';
formatData.data.pubTime = author.pub_time;
formatData.data.pubTs = moment(author.pub_ts * 1000).format('YYYY年MM月DD日 HH:mm:ss');
formatData.data.category = '视频动态';
Expand Down Expand Up @@ -147,7 +147,7 @@ export class BiliQuery {
formatData.data.pics = pics;
formatData.data.content = '';
}
formatData.data.url = this.formatUrl(desc?.jump_url);
formatData.data.url = this.formatUrl(desc?.jump_url) || '';
formatData.data.pubTime = author.pub_time;
formatData.data.pubTs = moment(author.pub_ts * 1000).format('YYYY年MM月DD日 HH:mm:ss');
formatData.data.category = '文章动态';
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "yuki-plugin",
"version": "2.0.5-13",
"version": "2.0.5-14",
"author": "snowtafir",
"description": "优纪插件,yunzai-V4 关于 微博推送、B站推送 等功能的拓展插件",
"main": "./index",
Expand Down

0 comments on commit 80e9fbe

Please sign in to comment.