This commit is contained in:
hp0912 2026-03-15 14:48:58 +08:00
parent b239d7b16d
commit 9f7a8ea0de

View File

@ -22,7 +22,7 @@ def fetch_kfc_copy() -> str:
text = payload.get("text")
if isinstance(text, str) and text.strip():
# 该 API 偶尔返回双重转义的换行符(字面量 \n在此统一还原
return text.replace("\\n", "\n")
return "<wechat-robot-text>" + text.replace("\\n", "\n") + "</wechat-robot-text>"
return FALLBACK_TEXT