feat: send-proactive 消息记入平台日志 — ethend可见
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user