File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
weixin-java-common/src/main/java/me/chanjar/weixin/common/util/json Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -46,6 +46,7 @@ protected JsonObject convertToJson(WxMenuButton button) {
4646 buttonJson .addProperty ("key" , button .getKey ());
4747 buttonJson .addProperty ("url" , button .getUrl ());
4848 buttonJson .addProperty ("media_id" , button .getMediaId ());
49+ buttonJson .addProperty ("article_id" , button .getArticleId ());
4950 buttonJson .addProperty ("appid" , button .getAppId ());
5051 buttonJson .addProperty ("pagepath" , button .getPagePath ());
5152 if (button .getSubButtons () != null && button .getSubButtons ().size () > 0 ) {
@@ -122,6 +123,7 @@ protected WxMenuButton convertFromJson(JsonObject json) {
122123 button .setUrl (GsonHelper .getString (json , "url" ));
123124 button .setType (GsonHelper .getString (json , "type" ));
124125 button .setMediaId (GsonHelper .getString (json , "media_id" ));
126+ button .setArticleId (GsonHelper .getString (json , "article_id" ));
125127 button .setAppId (GsonHelper .getString (json , "appid" ));
126128 button .setPagePath (GsonHelper .getString (json , "pagepath" ));
127129 return button ;
You can’t perform that action at this time.
0 commit comments