feat: send-proactive 消息记入平台日志 — ethend可见

This commit is contained in:
2026-06-23 21:42:23 +08:00
parent 3a5591833f
commit cdfe440044
2 changed files with 26 additions and 0 deletions
+13
View File
@@ -281,6 +281,19 @@ func main() {
// Setup HTTP server.
mux := http.NewServeMux()
bh := handler.NewBridgeHandler(router)
bh.SetLogFunc(func(platform, channelID, senderID, content string, success bool) {
msgLogger.Log(logging.LogEntry{
Timestamp: time.Now(),
Direction: "outgoing",
Platform: platform,
ChannelID: channelID,
SenderID: senderID,
SenderName: "Cyrene",
Content: content,
ContentType: "text",
Success: success,
})
})
bh.RegisterRoutes(mux)
bh.StartChannelRefresh(10 * time.Minute)