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) {
46
46
buttonJson .addProperty ("key" , button .getKey ());
47
47
buttonJson .addProperty ("url" , button .getUrl ());
48
48
buttonJson .addProperty ("media_id" , button .getMediaId ());
49
+ buttonJson .addProperty ("article_id" , button .getArticleId ());
49
50
buttonJson .addProperty ("appid" , button .getAppId ());
50
51
buttonJson .addProperty ("pagepath" , button .getPagePath ());
51
52
if (button .getSubButtons () != null && button .getSubButtons ().size () > 0 ) {
@@ -122,6 +123,7 @@ protected WxMenuButton convertFromJson(JsonObject json) {
122
123
button .setUrl (GsonHelper .getString (json , "url" ));
123
124
button .setType (GsonHelper .getString (json , "type" ));
124
125
button .setMediaId (GsonHelper .getString (json , "media_id" ));
126
+ button .setArticleId (GsonHelper .getString (json , "article_id" ));
125
127
button .setAppId (GsonHelper .getString (json , "appid" ));
126
128
button .setPagePath (GsonHelper .getString (json , "pagepath" ));
127
129
return button ;
You can’t perform that action at this time.
0 commit comments