mirror of
				https://gitee.com/binary/weixin-java-tools.git
				synced 2025-10-31 16:36:54 +08:00 
			
		
		
		
	🐛 #2544 【公众号】修复菜单文章id未序列化问题
This commit is contained in:
		| @@ -46,6 +46,7 @@ public class WxMenuGsonAdapter implements JsonSerializer<WxMenu>, JsonDeserializ | ||||
|     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) { | ||||
| @@ -122,6 +123,7 @@ public class WxMenuGsonAdapter implements JsonSerializer<WxMenu>, JsonDeserializ | ||||
|     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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 zhoushuofu
					zhoushuofu