From ed508654a1c531a92d73fe4a4134a23107b73609 Mon Sep 17 00:00:00 2001 From: huangx Date: Mon, 17 Aug 2020 17:30:04 +0800 Subject: [PATCH] bugfix officialaccount/message/template json non-pointer error (#318) Co-authored-by: huangxiang --- officialaccount/message/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/officialaccount/message/template.go b/officialaccount/message/template.go index ef07349..2964d5c 100644 --- a/officialaccount/message/template.go +++ b/officialaccount/message/template.go @@ -106,7 +106,7 @@ func (tpl *Template) List() (templateList []*TemplateItem, err error) { return } var res resTemplateList - err = util.DecodeWithError(response, res, "ListTemplate") + err = util.DecodeWithError(response, &res, "ListTemplate") if err != nil { return }