Skip to content

Commit 3c1bb44

Browse files
freemankevinclaude
andcommitted
feat(notify): 钉钉月报卡片底部添加查看详情链接
在 markdown 卡片末尾追加 [查看详情](details_url) 链接, 与企业微信、飞书通知保持一致,方便用户跳转到网站下载 Excel 报表。 Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
1 parent 5515828 commit 3c1bb44

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/notifiers/dingtalk.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,8 @@ def _fmt_version(val):
9595
soft_truncated=soft_truncated,
9696
sep="\n---\n",
9797
)
98-
full_text = f"{head_block}\n---\n{body}".rstrip()
98+
footer = f"\n\n[查看详情]({report.details_url})"
99+
full_text = f"{head_block}\n---\n{body}{footer}".rstrip()
99100

100101
return {
101102
"msgtype": "markdown",

0 commit comments

Comments
 (0)