1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 21:02:25 +08:00

bugfix officialaccount/message/template json non-pointer error (#318)

Co-authored-by: huangxiang <huangxiang@didichuxing.com>
This commit is contained in:
huangx
2020-08-17 17:30:04 +08:00
committed by GitHub
parent a18fe5b58a
commit ed508654a1

View File

@@ -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
}