增加了获取图文素材中文章的封面图url

This commit is contained in:
miller
2016-03-28 14:54:57 +08:00
parent b805a9967c
commit 35697dafcf
2 changed files with 18 additions and 1 deletions

View File

@@ -46,6 +46,10 @@ public class WxMpMaterialNews implements Serializable {
* (必填) 图文消息缩略图的media_id可以在基础支持-上传多媒体文件接口中获得
*/
private String thumbMediaId;
/**
* 图文消息的封面url
*/
private String thumbUrl;
/**
* 图文消息的作者
*/
@@ -141,9 +145,17 @@ public class WxMpMaterialNews implements Serializable {
this.url = url;
}
public String getThumbUrl() {
return thumbUrl;
}
public void setThumbUrl(String thumbUrl) {
this.thumbUrl = thumbUrl;
}
@Override
public String toString() {
return "WxMpMassNewsArticle [" + "thumbMediaId=" + thumbMediaId + ", author=" + author + ", title=" + title +
return "WxMpMassNewsArticle [" + "thumbMediaId=" + thumbMediaId + "thumbUrl=" + thumbUrl + ", author=" + author + ", title=" + title +
", contentSourceUrl=" + contentSourceUrl + ", content=" + content + ", digest=" + digest +
", showCoverPic=" + showCoverPic +", url=" + url + "]";
}