fix: 工具结果推送 userID为空→回退adminUserID

This commit is contained in:
2026-06-23 20:50:33 +08:00
parent 01feb16262
commit 680696e2c4
+3
View File
@@ -465,6 +465,9 @@ func main() {
return return
} }
// 通过 thinker 的主动消息机制推送 // 通过 thinker 的主动消息机制推送
if userID == "" {
userID = adminUserID
}
thinker.TriggerReminderMessage(userID, sessionID, fmt.Sprintf("🔧 %s 执行完成:%s", toolName, result)) thinker.TriggerReminderMessage(userID, sessionID, fmt.Sprintf("🔧 %s 执行完成:%s", toolName, result))
}) })