From 51fc3d6d42e07d28a372621d723e8cce2b1aec7f Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sat, 25 May 2024 21:49:47 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E6=B7=BB=E5=8A=A0dy?= =?UTF-8?q?=E7=BC=BA=E5=B0=91ck=E6=8F=90=E7=A4=BA=20&=20=E7=BB=93=E6=9E=84?= =?UTF-8?q?=E6=95=B4=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 6 +++--- constants/constant.js | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 91c89f4..ad5835c 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -24,7 +24,7 @@ import { downloadM3u8Videos, mergeAcFileToMp4, parseM3u8, parseUrl } from "../ut import { BILI_DEFAULT_INTRO_LEN_LIMIT, DIVIDING_LINE, - douyinTypeMap, + douyinTypeMap, HELP_DOC, REDIS_YUNZAI_ISOVERSEA, REDIS_YUNZAI_LAGRANGE, SUMMARY_PROMPT, @@ -238,7 +238,7 @@ export class tools extends plugin { await this.douyinRequest(douUrl).then(async res => { // 当前版本需要填入cookie if (_.isEmpty(this.douyinCookie)) { - e.reply("检测到没有Cookie,无法解析抖音"); + e.reply(`检测到没有Cookie,无法解析抖音${HELP_DOC}`); return; } const douId = /note\/(\d+)/g.exec(res)?.[1] || /video\/(\d+)/g.exec(res)?.[1]; @@ -1543,7 +1543,7 @@ export class tools extends plugin { async weixin(e) { // 判断是否有总结的条件 if (_.isEmpty(this.aiApiKey) || _.isEmpty(this.aiApiKey)) { - e.reply("没有配置 Kimi,无法为您的微信文章总结!\n文档:https://gitee.com/kyrzy0416/rconsole-plugin") + e.reply(`没有配置 Kimi,无法为您的微信文章总结!${HELP_DOC}`) return true; } const urlReg = /(?:https?:\/\/)?mp\.weixin\.qq\.com\/[A-Za-z\d._?%&+\-=\/#]*/g; diff --git a/constants/constant.js b/constants/constant.js index af0b886..179b2f3 100644 --- a/constants/constant.js +++ b/constants/constant.js @@ -91,4 +91,6 @@ export const OCR_PROMPT = ` 示例:▲ 文本编辑器中的代码行。▲ const x = 5; const y = 10; const z = x + y; console.log(z); ` -export const SUMMARY_PROMPT = `请返回您仔细阅读正文后精心写成的详尽笔记` \ No newline at end of file +export const SUMMARY_PROMPT = `请返回您仔细阅读正文后精心写成的详尽笔记` + +export const HELP_DOC = "\n文档:https://gitee.com/kyrzy0416/rconsole-plugin" \ No newline at end of file