chroe: add send message caller ip

This commit is contained in:
engigu
2024-01-22 14:17:33 +08:00
parent ed292b09ed
commit 7040031253
4 changed files with 25 additions and 11 deletions
+5 -3
View File
@@ -32,6 +32,7 @@ type SendMessageService struct {
Text string
HTML string
MarkDown string
CallerIp string
Status int
LogOutput []string
@@ -190,9 +191,10 @@ func (sm *SendMessageService) RecordSendLog() {
return
}
log := models.SendTasksLogs{
Log: strings.Join(sm.LogOutput, "\n"),
TaskID: sm.TaskID,
Status: sm.Status,
Log: strings.Join(sm.LogOutput, "\n"),
TaskID: sm.TaskID,
Status: sm.Status,
CallerIp: sm.CallerIp,
}
err := log.Add()
if err != nil {