yz-yuki-plugin 2.0.7-15 → 2.0.7-16

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.
@@ -384,7 +384,7 @@ class BiliQuery {
384
384
  static async formatTextDynamicData(upName, data, isForward, setData) {
385
385
  const BiliDrawDynamicLinkUrl = 'https://m.bilibili.com/dynamic/';
386
386
  let desc, msg = [], pics = [], author, majorType, content, dynamicTitle, module_stat;
387
- let msg_meta = `B站【${upName}】动态推送:\n`;
387
+ let msg_meta = `B站【${upName}】动态推送:`;
388
388
  let dynamicType = data.type;
389
389
  function formatNumber(num) {
390
390
  if (num >= 10000) {
@@ -400,16 +400,16 @@ class BiliQuery {
400
400
  if (!desc && !author)
401
401
  return;
402
402
  module_stat = data?.modules?.module_stat;
403
- msg_meta = `B站【${upName}】视频动态推送:\n`;
403
+ msg_meta = `B站【${upName}】视频动态推送:`;
404
404
  msg = [
405
405
  msg_meta,
406
406
  `\n--------------------`,
407
407
  `\n${desc.title}`, // 标题
408
408
  `\n--------------------`,
409
409
  `\n视频简介:`,
410
- `${desc.desc}\n`,
410
+ `\n${desc.desc}`,
411
411
  `\n--------------------`,
412
- `投稿:${author ? moment(author.pub_ts * 1000).format('YYYY年MM月DD日 HH:mm:ss') : ''}`,
412
+ `\n投稿:${author ? moment(author.pub_ts * 1000).format('YYYY年MM月DD日 HH:mm:ss') : ''}`,
413
413
  `\n--------------------`,
414
414
  `\n${desc?.stat?.danmaku}弹幕 • ${desc?.stat?.play}播放`,
415
415
  `\n${formatNumber(module_stat?.like?.count)}点赞 • ${formatNumber(module_stat?.comment?.count)}评论 • ${formatNumber(module_stat?.forward?.count)}转发`,
@@ -440,7 +440,7 @@ class BiliQuery {
440
440
  if (!desc && !author)
441
441
  return;
442
442
  module_stat = data?.modules?.module_stat;
443
- msg_meta = `B站【${upName}】图文动态推送:\n`;
443
+ msg_meta = `B站【${upName}】图文动态推送:`;
444
444
  msg = [
445
445
  msg_meta,
446
446
  `\n--------------------`,
@@ -492,7 +492,7 @@ class BiliQuery {
492
492
  pics = pics.map((item) => {
493
493
  return Segment.image(item);
494
494
  });
495
- msg_meta = `B站【${upName}】图文动态推送:\n`;
495
+ msg_meta = `B站【${upName}】图文动态推送:`;
496
496
  msg = [
497
497
  msg_meta,
498
498
  `\n--------------------`,
@@ -541,7 +541,7 @@ class BiliQuery {
541
541
  pics = pics.map((item) => {
542
542
  return Segment.image(item);
543
543
  });
544
- msg_meta = `B站【${upName}】文章动态推送:\n`;
544
+ msg_meta = `B站【${upName}】文章动态推送:`;
545
545
  msg = [
546
546
  msg_meta,
547
547
  `\n--------------------`,
@@ -577,7 +577,7 @@ class BiliQuery {
577
577
  else {
578
578
  return 'continue';
579
579
  }
580
- msg_meta = `B站【${upName}】转发动态推送:\n`;
580
+ msg_meta = `B站【${upName}】转发动态推送:`;
581
581
  msg = [
582
582
  msg_meta,
583
583
  `\n--------------------`,
@@ -602,7 +602,7 @@ class BiliQuery {
602
602
  desc = desc?.live_play_info;
603
603
  if (!desc)
604
604
  return;
605
- msg_meta = `B站【${upName}】直播动态推送:\n`;
605
+ msg_meta = `B站【${upName}】直播动态推送:`;
606
606
  msg = [
607
607
  msg_meta,
608
608
  `\n--------------------`,
@@ -210,7 +210,7 @@ class WeiboQuery {
210
210
  /**动态发布时间 */
211
211
  let created_time = this.getDynamicCreatetDate(raw_post);
212
212
  let detail_url = `https://weibo.com/${info?.user?.id}/${info?.bid}`;
213
- let msg_meta = `微博【${upName}】动态推送:\n`;
213
+ let msg_meta = `微博【${upName}】动态推送:`;
214
214
  const dynamicPicCountLimit = setData.pushPicCountLimit || 3;
215
215
  function formatNumber(num) {
216
216
  if (num >= 10000) {
@@ -228,7 +228,7 @@ class WeiboQuery {
228
228
  const temp = Segment.image(pic_url, false, 15000, { referer: 'https://weibo.com' });
229
229
  pics.push(temp);
230
230
  }
231
- msg_meta = `微博【${upName}】视频动态推送:\n`;
231
+ msg_meta = `微博【${upName}】视频动态推送:`;
232
232
  msg = [
233
233
  msg_meta,
234
234
  `\n--------------------`,
@@ -255,7 +255,7 @@ class WeiboQuery {
255
255
  const temp = Segment.image(pic_url, false, 15000, { referer: 'https://weibo.com' });
256
256
  pics.push(temp);
257
257
  }
258
- msg_meta = `微博【${upName}】图文动态推送:\n`;
258
+ msg_meta = `微博【${upName}】图文动态推送:`;
259
259
  msg = [
260
260
  msg_meta,
261
261
  `\n--------------------`,
@@ -280,7 +280,7 @@ class WeiboQuery {
280
280
  const temp = Segment.image(pic_url, false, 15000, { referer: 'https://weibo.com' });
281
281
  pics.push(temp);
282
282
  }
283
- msg_meta = `微博【${upName}】文章动态推送:\n`;
283
+ msg_meta = `微博【${upName}】文章动态推送:`;
284
284
  msg = [
285
285
  msg_meta,
286
286
  `\n--------------------`,
@@ -310,7 +310,7 @@ class WeiboQuery {
310
310
  else {
311
311
  return 'continue';
312
312
  }
313
- msg_meta = `微博【${upName}】转发动态推送:\n`;
313
+ msg_meta = `微博【${upName}】转发动态推送:`;
314
314
  msg = [
315
315
  msg_meta,
316
316
  `\n--------------------`,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yz-yuki-plugin",
3
- "version": "2.0.7-15",
3
+ "version": "2.0.7-16",
4
4
  "description": "优纪插件,yunzaijs 关于 微博推送、B站推送 等功能的拓展插件",
5
5
  "author": "snowtafir",
6
6
  "type": "module",