Browse Source

fix Unmarshal

silenceper 6 years ago
parent
commit
dbb43ac7ad
1 changed files with 1 additions and 1 deletions
  1. 1 1
      material/material.go

+ 1 - 1
material/material.go

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