style: 去掉引用语法, 明细改普通行(企微连续引用行渲染粘连)
This commit is contained in:
@@ -104,14 +104,14 @@ def wecom_alert_failure(event: dict | str | None = None) -> dict:
|
||||
|
||||
lines = [f"## 流程失败:{flow_name or resource_name or '未知'}"]
|
||||
if run_name:
|
||||
lines.append(f"> Run {run_name} · {event_name.split('.')[-1]} · {_fmt_ts(occurred)}")
|
||||
lines.append(f"Run {run_name} · {event_name.split('.')[-1]} · {_fmt_ts(occurred)}")
|
||||
if state_msg:
|
||||
lines.append(f'> 错误:<font color="warning">{state_msg[:150].replace(chr(10), " ")}</font>')
|
||||
lines.append(f'错误:<font color="warning">{state_msg[:150].replace(chr(10), " ")}</font>')
|
||||
if run_id:
|
||||
lines.append(f"> [查看详情]({UI_BASE}/runs/flow-run/{run_id})")
|
||||
lines.append(f"[查看详情]({UI_BASE}/runs/flow-run/{run_id})")
|
||||
else:
|
||||
raw = json.dumps(ev, ensure_ascii=False)[:300] if ev else "(事件内容解析失败)"
|
||||
lines.append(f"> 原始事件:{raw}")
|
||||
lines.append(f"原始事件:{raw}")
|
||||
|
||||
result["sent"] = send_markdown("\n".join(lines))
|
||||
result.update({"flowName": flow_name or None, "runId": run_id})
|
||||
|
||||
Reference in New Issue
Block a user