From 63be5b9b8acf5a9b9dfda3f14220ba74e013d5db Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Tue, 17 Mar 2026 15:44:52 +0000 Subject: [PATCH] =?UTF-8?q?[PER-ZY001]=20=E5=85=AC=E5=91=8A=E6=9D=BF?= =?UTF-8?q?=E6=A8=A1=E5=9D=97=E4=BB=A3=E7=A0=81=E5=AE=A1=E6=9F=A5=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=20=C2=B7=20rich=5Ftext=E5=AE=89=E5=85=A8=E6=A3=80?= =?UTF-8?q?=E6=9F=A5=20+=20=E6=97=A5=E5=BF=97=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com> --- scripts/skyeye/bulletin-board.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/skyeye/bulletin-board.js b/scripts/skyeye/bulletin-board.js index 4f8c7a0e..8a859ba2 100644 --- a/scripts/skyeye/bulletin-board.js +++ b/scripts/skyeye/bulletin-board.js @@ -105,6 +105,7 @@ function extractBlockText(block) { const type = block.type; if (!block[type]) return ''; const richTexts = block[type].rich_text || block[type].text || []; + if (!Array.isArray(richTexts)) return ''; return richTexts.map(t => t.plain_text || '').join(''); } @@ -192,7 +193,7 @@ async function main() { if (require.main === module) { main().catch(e => { - console.error('公告板模块执行失败:', e.message); + console.error('⚠️ 公告板模块执行失败(非阻断性):', e.message); process.exit(0); // 不阻断天眼主流程 }); }