Skip to content

Commit

Permalink
🐛 #2544 【公众号】修复菜单文章id未序列化问题
Browse files Browse the repository at this point in the history
  • Loading branch information
zhoushuofu authored Feb 23, 2022
1 parent 6c466f0 commit a25c48e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ protected JsonObject convertToJson(WxMenuButton button) {
buttonJson.addProperty("key", button.getKey());
buttonJson.addProperty("url", button.getUrl());
buttonJson.addProperty("media_id", button.getMediaId());
buttonJson.addProperty("article_id", button.getArticleId());
buttonJson.addProperty("appid", button.getAppId());
buttonJson.addProperty("pagepath", button.getPagePath());
if (button.getSubButtons() != null && button.getSubButtons().size() > 0) {
Expand Down Expand Up @@ -122,6 +123,7 @@ protected WxMenuButton convertFromJson(JsonObject json) {
button.setUrl(GsonHelper.getString(json, "url"));
button.setType(GsonHelper.getString(json, "type"));
button.setMediaId(GsonHelper.getString(json, "media_id"));
button.setArticleId(GsonHelper.getString(json, "article_id"));
button.setAppId(GsonHelper.getString(json, "appid"));
button.setPagePath(GsonHelper.getString(json, "pagepath"));
return button;
Expand Down

0 comments on commit a25c48e

Please sign in to comment.