Преглед на файлове

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

Co-authored-by: huangxiang <huangxiang@didichuxing.com>
huangx преди 5 години
родител
ревизия
ed508654a1
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      officialaccount/message/template.go

+ 1 - 1
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
 	}