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