调整下图文消息格式
This commit is contained in:
@@ -70,8 +70,8 @@ public class NotifyMsgTest extends TokenTest {
|
||||
public void news() throws WeixinException {
|
||||
News news = new News();
|
||||
NotifyMessage notify = new NotifyMessage(news, 0);
|
||||
news.pushArticle("title1", "desc1", "picUrl1", "url1");
|
||||
news.pushArticle("title2", "desc2", "picUrl2", "url2");
|
||||
news.addArticle("title1", "desc1", "picUrl1", "url1");
|
||||
news.addArticle("title2", "desc2", "picUrl2", "url2");
|
||||
System.out.println(notifyApi.sendNotify(notify));
|
||||
}
|
||||
|
||||
@@ -79,8 +79,8 @@ public class NotifyMsgTest extends TokenTest {
|
||||
public void mpnews() throws WeixinException {
|
||||
MpNews news = new MpNews();
|
||||
NotifyMessage notify = new NotifyMessage(news, 0);
|
||||
news.pushArticle("thumbMediaId1", "title1", "content1");
|
||||
news.pushArticle("thumbMediaId2", "title1", "content2");
|
||||
news.addArticle("thumbMediaId1", "title1", "content1");
|
||||
news.addArticle("thumbMediaId2", "title1", "content2");
|
||||
System.out.println(notifyApi.sendNotify(notify));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user