From 59bb387034938526fb1a2e27d0febd4ee2633999 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Mon, 16 Sep 2024 23:04:35 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=93=94=E5=93=A9=E5=93=94=E5=93=A9=E7=95=AA=E5=89=A7=E9=80=BB?= =?UTF-8?q?=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 在 apps/tools.js 中调整哔哩哔哩番剧信息显示逻辑,使用变量存储标题 - 添加短链接转换功能,优化用户访问体验 - 更新信息显示格式,提高信息展示的一致性和准确性 --- apps/tools.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 0a17395..9fe3b5c 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -700,10 +700,10 @@ export class tools extends plugin { "收藏": favorite, }; // 截断标题,查看Redis中是否存在,避免频繁走网络连接 - const { shortLink, shortLink2 } = await this.biliAnimeCacheDetect(result.title, result.cover); + const title = result.title; e.reply([ segment.image(resp.result.cover), - `${ this.identifyPrefix }识别:哔哩哔哩番剧,${ result.title }\n🎯 评分: ${ result?.rating?.score ?? '-' } / ${ result?.rating?.count ?? '-' }\n📺 ${ result.new_ep.desc }, ${ result.seasons[0].new_ep.index_show }\n`, + `${ this.identifyPrefix }识别:哔哩哔哩番剧,${ title }\n🎯 评分: ${ result?.rating?.score ?? '-' } / ${ result?.rating?.count ?? '-' }\n📺 ${ result.new_ep.desc }, ${ result.seasons[0].new_ep.index_show }\n`, `${ formatBiliInfo(dataProcessMap) }`, `\n\n🪶 在线观看: ${ await urlTransformShortLink(ANIME_SERIES_SEARCH_LINK + title) }`, `\n🌸 在线观看: ${ await urlTransformShortLink(ANIME_SERIES_SEARCH_LINK2 + title) }`