From af0f7720cfa3f4ccbce0d2e0126eeb6b2a7ce577 Mon Sep 17 00:00:00 2001 From: dustoair <107600816+dustoair@users.noreply.github.com> Date: Wed, 10 Aug 2022 19:50:32 +0800 Subject: [PATCH] lastText := GetLastWechatLog(msgContent.ToUsername, "text") --- handle/replyText.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/handle/replyText.go b/handle/replyText.go index 48d7882..9d8f0a0 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.FromUsername, "text") + lastText := GetLastWechatLog(msgContent.ToUsername, "text") log.Println(lastText, "lastText33333333333333333333333333333333333333333333333333333333333333333") textMd5 := utils.Md5String(lastText.Content) go RecordWechatBlockWords(lastText.Content, textMd5, msgContent.FromUsername)