From f5cef170f0096ab98330a08be3d33ef337cdde47 Mon Sep 17 00:00:00 2001 From: himawari <54976075+guohuiyuan@users.noreply.github.com> Date: Mon, 18 Apr 2022 16:31:09 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=91=EF=B8=8F=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=9F=A5=E7=9C=8B=E5=85=B6=E4=BB=96=E7=BE=A4=E8=81=8A=E7=83=AD?= =?UTF-8?q?=E8=AF=8D=E7=9A=84=E9=97=AE=E9=A2=98=20(#195)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- plugin/word_count/word_count.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/word_count/word_count.go b/plugin/word_count/word_count.go index f26cd885..f261ab7c 100644 --- a/plugin/word_count/word_count.go +++ b/plugin/word_count/word_count.go @@ -82,7 +82,7 @@ func init() { messageSeq := h.Get("messages.0.message_seq").Int() for i := 0; i < int(p/20) && messageSeq != 0; i++ { if i != 0 { - h = ctx.CallAction("get_group_msg_history", zero.Params{"group_id": ctx.Event.GroupID, "message_seq": messageSeq}).Data + h = ctx.CallAction("get_group_msg_history", zero.Params{"group_id": gid, "message_seq": messageSeq}).Data } for _, v := range h.Get("messages.#.message").Array() { tex := strings.TrimSpace(message.ParseMessageFromString(v.Str).ExtractPlainText())