diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/home/tree/LevelTreeInfo.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/home/tree/LevelTreeInfo.java index c74fff1246b6637f9161164de971524f9bf7b9ef..104588202e0a7fe7ebddfc23bf83303d0b8af404 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/home/tree/LevelTreeInfo.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/home/tree/LevelTreeInfo.java @@ -2,6 +2,7 @@ package me.chanjar.weixin.channel.bean.home.tree; import com.fasterxml.jackson.annotation.JsonProperty; import java.io.Serializable; +import java.util.List; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; @@ -17,7 +18,7 @@ import lombok.NoArgsConstructor; public class LevelTreeInfo implements Serializable { /** 一级分类 */ - @JsonProperty("level1") - private OneLevelTreeNode level1; + @JsonProperty("level_1") + private List level1; } diff --git a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/home/tree/OneLevelTreeNode.java b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/home/tree/OneLevelTreeNode.java index 74103e2b89e86d8e30f84b0cce1c1760c39678c7..76499c86e7d3b6bf0b2d042cc592c9900eff2b5d 100644 --- a/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/home/tree/OneLevelTreeNode.java +++ b/weixin-java-channel/src/main/java/me/chanjar/weixin/channel/bean/home/tree/OneLevelTreeNode.java @@ -1,6 +1,7 @@ package me.chanjar.weixin.channel.bean.home.tree; import com.fasterxml.jackson.annotation.JsonProperty; +import java.util.List; import lombok.AllArgsConstructor; import lombok.Data; import lombok.EqualsAndHashCode; @@ -18,7 +19,7 @@ import lombok.NoArgsConstructor; public class OneLevelTreeNode extends CatTreeNode { /** 二级分类 */ - @JsonProperty("level2") - private CatTreeNode level2; + @JsonProperty("level_2") + private List level2; }