From d8665f58162b90d04e3dfe7d0881cbc8c0ff2432 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sat, 14 Mar 2026 16:48:21 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20sender=5Fid=E5=85=BC=E5=AE=B9=20+=20?= =?UTF-8?q?=E7=A9=BA=E5=86=85=E5=AE=B9=E8=B7=B3=E8=BF=87=E4=BA=BA=E6=A0=BC?= =?UTF-8?q?=E4=BD=93=E5=94=A4=E9=86=92?= 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> --- .github/workflows/syslog-pipeline.yml | 9 ++++++++- scripts/write-notion-syslog.js | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/syslog-pipeline.yml b/.github/workflows/syslog-pipeline.yml index 09a61763..6eb8073a 100644 --- a/.github/workflows/syslog-pipeline.yml +++ b/.github/workflows/syslog-pipeline.yml @@ -57,7 +57,7 @@ jobs: echo "has_syslog=true" >> "$GITHUB_OUTPUT" echo "syslog_file=$LATEST" >> "$GITHUB_OUTPUT" - SENDER_OPEN_ID=$(jq -r '.sender_open_id // empty' "$LATEST" 2>/dev/null || true) + SENDER_OPEN_ID=$(jq -r '.sender_open_id // .sender_id // empty' "$LATEST" 2>/dev/null || true) CHAT_ID=$(jq -r '.chat_id // empty' "$LATEST" 2>/dev/null || true) SENDER_NAME=$(jq -r '.sender_name // empty' "$LATEST" 2>/dev/null || true) @@ -156,6 +156,13 @@ jobs: fi fi + if [ -z "$SUBMIT_CONTENT" ]; then + echo "⚠️ SUBMIT_CONTENT 为空,跳过人格体唤醒" + echo "broadcast_title=" >> "$GITHUB_OUTPUT" + echo "broadcast_url=" >> "$GITHUB_OUTPUT" + exit 0 + fi + if node scripts/wake-persona.js; then echo "✅ 人格体唤醒成功" else diff --git a/scripts/write-notion-syslog.js b/scripts/write-notion-syslog.js index ffa94f98..c4c70af1 100644 --- a/scripts/write-notion-syslog.js +++ b/scripts/write-notion-syslog.js @@ -128,7 +128,7 @@ async function main() { const syslogText = entry.syslog_raw || entry.syslog || entry.content || ''; const source = entry.source || 'unknown'; const senderName = entry.sender_name || ''; - const senderOpenId = entry.sender_open_id || ''; + const senderOpenId = entry.sender_open_id || entry.sender_id || ''; const chatId = entry.chat_id || ''; const timestamp = entry.timestamp || new Date().toISOString(); const dateStr = timestamp.split('T')[0] || new Date().toISOString().split('T')[0];