()
| 1094 | } |
| 1095 | |
| 1096 | async function readArxivDirect() { |
| 1097 | const userId = ensureUser(); |
| 1098 | const arxivId = $("directArxivId").value.trim(); |
| 1099 | if (!arxivId) throw new Error("请输入 arXiv ID 或链接。"); |
| 1100 | setStatus("生成 arXiv 精读报告", true); |
| 1101 | const data = await api("/api/read/arxiv", { |
| 1102 | method: "POST", |
| 1103 | body: JSON.stringify({ |
| 1104 | user_id: userId, |
| 1105 | arxiv_id: arxivId, |
| 1106 | write_feishu: isChecked("directWriteFeishu"), |
| 1107 | }), |
| 1108 | }); |
| 1109 | $("directReportResults").classList.remove("hidden"); |
| 1110 | renderReportList("directReportList", data); |
| 1111 | await Promise.allSettled([refreshDashboard(), refreshWikiStats()]); |
| 1112 | setStatus("精读报告已生成"); |
| 1113 | } |
| 1114 | |
| 1115 | async function readPdfDirect() { |
| 1116 | const userId = ensureUser(); |
nothing calls this directly
no test coverage detected