feat(recipe): 修改菜谱飞书卡片样式

修改菜谱飞书卡片样式

Signed-off-by: Ching <loooching@gmail.com>
This commit is contained in:
Ching 2022-01-22 00:01:44 +08:00
parent a0fa3ac98c
commit beb10e00a9

View File

@ -94,12 +94,18 @@ class Recipe(models.Model):
"config": { "config": {
"wide_screen_mode": True "wide_screen_mode": True
}, },
"header": {
"title": {
"tag": "plain_text",
"content": self.name,
},
"template": "blue"
},
"elements": [ "elements": [
{ {
"tag": "markdown", "tag": "markdown",
"content": "# **%s**\n类型:%s\n评分:%s\n难度:%s" % ( "content": "**类型**%s\n**评分**%s\n**难度**%s" % (
self.name, self.display_recipe_type, self.display_rate, self.display_recipe_type, self.display_rate, self.display_difficult)
self.display_difficult)
}, },
{ {
"tag": "action", "tag": "action",