From 0ce94d8cbac849c5873805c23f500f2501b0d9b9 Mon Sep 17 00:00:00 2001 From: mol Date: Thu, 14 Dec 2023 15:05:30 +0800 Subject: [PATCH] test --- plugins/cook/utils/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plugins/cook/utils/index.js b/plugins/cook/utils/index.js index aca8812..f278a37 100644 --- a/plugins/cook/utils/index.js +++ b/plugins/cook/utils/index.js @@ -4,13 +4,13 @@ const { Message } = pkg export function genRecipeMessage(recipeList, header, footer) { const msg = new Message() if (header) { - msg.addText(`${header}\n`); + msg.addText(`${header}\n\n`); } recipeList.forEach((recipe, index)=> { - msg.addText(`${index}. ${recipe.name}\n`) + msg.addText(`${index + 1}. ${recipe.name}\n`) msg.addText(`\t· 材料:${recipe.stuff}\n`) msg.addText(`\t· 厨具:${recipe.tools}\n`) - msg.addText(`\t· 制作视频:https://www.bilibili.com/video/${recipe.bv}\n`) + msg.addText(`\t· 制作视频:https://www.bilibili.com/video/${recipe.bv}\n\n`) }) if (footer) {