(reports, docs)
| 1078 | } |
| 1079 | |
| 1080 | function renderFeishuNotice(reports, docs) { |
| 1081 | const warning = reports.feishu_warning || ""; |
| 1082 | const docErrors = docs |
| 1083 | .map((doc) => doc.feishu_error) |
| 1084 | .filter(Boolean); |
| 1085 | if (!warning && !docErrors.length) return ""; |
| 1086 | const details = warning || `飞书文档发送失败:${docErrors[0]}`; |
| 1087 | return ` |
| 1088 | <div class="notice warning"> |
| 1089 | <strong>飞书文档发送失败,本地报告已生成。</strong> |
| 1090 | <p>${escapeHtml(details)}</p> |
| 1091 | <p>请配置飞书相关环境变量,或确认 lark-cli 已安装并登录后再重试。</p> |
| 1092 | </div> |
| 1093 | `; |
| 1094 | } |
| 1095 | |
| 1096 | async function readArxivDirect() { |
| 1097 | const userId = ensureUser(); |
no test coverage detected