add text record

master
dustoair 3 years ago
parent 685decee82
commit 1dce492f30

@ -29,6 +29,7 @@ func handleMessage(w http.ResponseWriter, r *http.Request) {
return
} else {
log.Println("消息验证成功:", msgContent)
go RecordWechatLog(msgContent.FromUsername, msgContent.ToUsername, msgContent.CreateTime, msgContent.MsgType, msgContent.Content)
if global.EnableReply {
Reply(msgContent, timestamp, nonce, w)
} else {

@ -77,6 +77,7 @@ func replyText(msgContent MsgContent, timestamp, nonce string, w http.ResponseWr
log.Println("返回消息失败")
return
} else {
go RecordWechatLog(msgContent.FromUsername, msgContent.ToUsername, msgContent.CreateTime, msgContent.MsgType, replyContent)
log.Println("成功写入", l)
}
}

Loading…
Cancel
Save