通过文本消息删除上一条文本消息

master
dustoair 3 years ago
parent 5fd2d2c400
commit b1af7a21f8

@ -5,7 +5,6 @@ import (
"WechatGateWay/third_part"
"WechatGateWay/utils"
"encoding/xml"
"fmt"
"log"
"net/http"
)
@ -34,8 +33,9 @@ func replyText(msgContent MsgContent, timestamp, nonce string, w http.ResponseWr
} else if msgContent.Content == "删除文本" {
//通过文本消息删除上一条文本消息
log.Println("通过文本消息删除上一条文本消息")
lastText := GetLastWechatLog(msgContent.FromUsername, "text")
fmt.Println(lastText, "lastText33333333333333333333333333333333333333333333333333333333333333333")
log.Println(lastText, "lastText33333333333333333333333333333333333333333333333333333333333333333")
textMd5 := utils.Md5String(lastText.Content)
go RecordWechatBlockWords(lastText.Content, textMd5, msgContent.FromUsername)
return

Loading…
Cancel
Save