Skip to content

Commit

Permalink
wechat reporter: add timestamp
Browse files Browse the repository at this point in the history
  • Loading branch information
naivekun committed Apr 19, 2021
1 parent 86c6e6f commit 683948f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion reporter/wechat/wechat.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"sign-your-horse/common"
"sign-your-horse/reporter"
"time"

"github.com/imroc/req"
"github.com/tidwall/gjson"
Expand Down Expand Up @@ -48,7 +49,7 @@ func (w *WechatReporter) Report(msg string) error {
MsgType: "text",
AgentID: w.AgentID,
Text: WechatPushBodyText{
Content: msg,
Content: "[" + time.Now().Format("2006-01-02 15:04:05") + "]" + msg,
},
Safe: 0,
}
Expand Down

0 comments on commit 683948f

Please sign in to comment.