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())