新增图文消息的封面图片的地址
This commit is contained in:
parent
997bdc58b6
commit
3f0a120047
@ -498,6 +498,10 @@
|
||||
<code>42004</code>
|
||||
<text>插件token超时</text>
|
||||
</error>
|
||||
<error>
|
||||
<code>42007</code>
|
||||
<text>用户修改微信密码,accesstoken和refreshtoken失效,需要重新授权</text>
|
||||
</error>
|
||||
<error>
|
||||
<code>43001</code>
|
||||
<desc>require GET method</desc>
|
||||
|
||||
@ -21,6 +21,11 @@ public class MpArticle implements Serializable {
|
||||
*/
|
||||
@JSONField(name = "thumb_media_id")
|
||||
private String thumbMediaId;
|
||||
/**
|
||||
* 图文消息的封面图片的地址,第三方开发者也可以使用这个URL下载图片到自己服务器中,然后显示在自己网站上
|
||||
*/
|
||||
@JSONField(name = "thumb_url")
|
||||
private String thumbUrl;
|
||||
/**
|
||||
* 图文消息的作者 可为空
|
||||
*/
|
||||
@ -66,6 +71,7 @@ public class MpArticle implements Serializable {
|
||||
|
||||
@JSONCreator
|
||||
public MpArticle(@JSONField(name = "thumbMediaId") String thumbMediaId,
|
||||
@JSONField(name = "thumbUrl") String thumbUrl,
|
||||
@JSONField(name = "author") String author,
|
||||
@JSONField(name = "title") String title,
|
||||
@JSONField(name = "sourceUrl") String sourceUrl,
|
||||
@ -75,6 +81,7 @@ public class MpArticle implements Serializable {
|
||||
@JSONField(name = "contentUrl") String contentUrl,
|
||||
@JSONField(name = "coverUrl") String coverUrl) {
|
||||
this.thumbMediaId = thumbMediaId;
|
||||
this.thumbUrl = thumbUrl;
|
||||
this.author = author;
|
||||
this.title = title;
|
||||
this.sourceUrl = sourceUrl;
|
||||
@ -145,12 +152,16 @@ public class MpArticle implements Serializable {
|
||||
this.coverUrl = coverUrl;
|
||||
}
|
||||
|
||||
public String getThumbUrl() {
|
||||
return thumbUrl;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "MpArticle [thumbMediaId=" + thumbMediaId + ", author=" + author
|
||||
+ ", title=" + title + ", sourceUrl=" + sourceUrl
|
||||
+ ", content=" + content + ", digest=" + digest
|
||||
+ ", showCoverPic=" + showCoverPic + ", contentUrl="
|
||||
+ contentUrl + ", coverUrl=" + coverUrl + "]";
|
||||
return "MpArticle [thumbMediaId=" + thumbMediaId + ",thumbUrl="
|
||||
+ thumbUrl + ", author=" + author + ", title=" + title
|
||||
+ ", sourceUrl=" + sourceUrl + ", content=" + content
|
||||
+ ", digest=" + digest + ", showCoverPic=" + showCoverPic
|
||||
+ ", contentUrl=" + contentUrl + ", coverUrl=" + coverUrl + "]";
|
||||
}
|
||||
}
|
||||
|
||||
@ -44,8 +44,8 @@ import com.foxinmy.weixin4j.util.StringUtil;
|
||||
public final class XmlStream {
|
||||
private final static String ROOT_ELEMENT_XML = "xml";
|
||||
private final static String XML_VERSION = "1.0";
|
||||
private static ThreadLocal<Map<Class<?>, Unmarshaller>> messageUnmarshaller;
|
||||
private static ThreadLocal<Map<Class<?>, Marshaller>> messageMarshaller;
|
||||
private final static ThreadLocal<Map<Class<?>, Unmarshaller>> messageUnmarshaller;
|
||||
private final static ThreadLocal<Map<Class<?>, Marshaller>> messageMarshaller;
|
||||
static {
|
||||
messageUnmarshaller = new ThreadLocal<Map<Class<?>, Unmarshaller>>() {
|
||||
@Override
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user