From f1d36a21487795846e487638a6c4202829e3dbbb Mon Sep 17 00:00:00 2001 From: hotyue <52734432+hotyue@users.noreply.github.com> Date: Thu, 16 Apr 2026 05:50:58 +0000 Subject: [PATCH] =?UTF-8?q?feat(master):=20[v3.5.2]=20=E5=AE=9E=E7=8E=B0?= =?UTF-8?q?=E5=85=A8=E8=87=AA=E5=8A=A8=E4=B8=9D=E6=BB=91=E6=94=B9=E5=90=8D?= =?UTF-8?q?=EF=BC=8C=E6=8E=A5=E6=94=B6=20Agent=20=E6=88=90=E5=8A=9F?= =?UTF-8?q?=E5=9B=9E=E6=89=A7=E5=90=8E=E7=9E=AC=E9=97=B4=E5=88=B7=E6=96=B0?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=20SQLite=20=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- master/tg_master.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/master/tg_master.sh b/master/tg_master.sh index b2b9bcf..1b02e16 100755 --- a/master/tg_master.sh +++ b/master/tg_master.sh @@ -348,7 +348,9 @@ while true; do if [ "$RESPONSE" == "FAILED" ]; then send_msg "$CHAT_ID" "❌ 指令下发超时!请检查节点连通性。" elif [[ "$RESPONSE" == *"Action Accepted"* ]]; then - send_msg "$CHAT_ID" "✅ 通讯成功!节点别名已下发: \`$NEW_ALIAS\`\n*(注: 节点随后将自动向中枢报备刷新面板)*" + # [v3.5.2 极致丝滑] 确认 Agent 修改成功后,Master 立即自动同步本地 SQLite 数据库! + db_exec "UPDATE nodes SET node_alias='$NEW_ALIAS' WHERE chat_id='$CHAT_ID' AND node_name='$TARGET_NODE';" + send_msg "$CHAT_ID" "✅ 通讯成功!节点别名已下发: \`$NEW_ALIAS\`\n*(司令部档案已自动刷新,雷达面板已同步)*" else # 增加输出 RESPONSE 调试信息,排查任何拦截死因 send_msg "$CHAT_ID" "⚠️ 节点拒绝了请求,请确保 Agent 已更新至 v3.5.2\n(回传信息: \`${RESPONSE}\`)"