diff --git a/handle/replyText.go b/handle/replyText.go index 468e727..bf5d820 100644 --- a/handle/replyText.go +++ b/handle/replyText.go @@ -34,7 +34,7 @@ func replyText(msgContent MsgContent, timestamp, nonce string, w http.ResponseWr } else if msgContent.Content == "删除文本" { //通过文本消息删除上一条文本消息 log.Println("通过文本消息删除上一条文本消息") - lastText := GetLastWechatLog(msgContent.ToUsername, "text") + lastText := GetLastWechatLog(msgContent.FromUsername, "text") log.Println(lastText, "lastText33333333333333333333333333333333333333333333333333333333333333333") textMd5 := utils.Md5String(lastText.Content) go RecordWechatBlockWords(lastText.Content, textMd5, msgContent.FromUsername) diff --git a/readme.md b/readme.md index 7d1d134..34d9d35 100644 --- a/readme.md +++ b/readme.md @@ -22,3 +22,4 @@ manifests/Deployment.yaml manifests/Service.yaml manifests/ingress.yaml --- +```