test
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
mol
2023-12-14 13:59:47 +08:00
parent d7a341afd0
commit 579d39fa4a
3 changed files with 1 additions and 4 deletions

View File

@ -29,7 +29,6 @@ steps: # 定义管道的执行步骤
restore: true
mount:
- ./node_modules
- ./nugetpackages
- name: build-tags
image: yxs970707/drone-web-tags
@ -71,7 +70,6 @@ steps: # 定义管道的执行步骤
rebuild: true
mount:
- ./node_modules
- ./nugetpackages
---
kind: pipeline # 定义一个管道

View File

@ -13,7 +13,6 @@ const commandHandle = {
};
async function randomCook(text, data) {
logger(text, data.type, data.sender.id, data.sender.group.id);
const limit = Number.parseInt(text) > 0 ? Number.parseInt(text) : 5;
const recipeList = await getRandomRecipe(limit);
logger(JSON.stringify(recipeList));

View File

@ -3,7 +3,7 @@ export function genRecipeMessage(recipeList, header, footer) {
for (let recipe of recipeList) {
textList.push(
`${recipe.name}\n准备材料:${recipe.stuff}\n使用厨具:${recipe.tools}\nhttps://www.bilibili.com/video/${recipe.bv}`,
`${recipe['name']}\n准备材料:${recipe.stuff}\n使用厨具:${recipe.tools}\nhttps://www.bilibili.com/video/${recipe.bv}`,
);
}