调整下图文消息格式

This commit is contained in:
jinyu
2015-07-16 17:31:50 +08:00
parent ba5d2da3a1
commit 624d2fac8f
6 changed files with 68 additions and 67 deletions
@@ -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));
}