1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-05 13:12:26 +08:00

fix Unmarshal

This commit is contained in:
silenceper
2019-07-15 18:24:02 +08:00
parent 79ff0321e3
commit dbb43ac7ad

View File

@@ -63,7 +63,7 @@ func (material *Material) AddNews(articles []*Article) (mediaID string, err erro
uri := fmt.Sprintf("%s?access_token=%s", addNewsURL, accessToken)
responseBytes, err := util.PostJSON(uri, req)
var res resArticles
err = json.Unmarshal(responseBytes, res)
err = json.Unmarshal(responseBytes, &res)
if err != nil {
return
}