From 27f1fcaec6cae003e39333e60eb46aae0b902106 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=BD=97=E5=8B=8B?= Date: Wed, 18 Dec 2024 03:19:46 +0000 Subject: [PATCH] =?UTF-8?q?:bug:=20=E3=80=90=E8=A7=86=E9=A2=91=E5=8F=B7?= =?UTF-8?q?=E3=80=91=E4=BF=AE=E5=A4=8D=E5=BE=AE=E4=BF=A1=E5=B0=8F=E5=BA=97?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=E7=AE=A1=E7=90=86API=E8=8E=B7=E5=8F=96?= =?UTF-8?q?=E5=9C=A8=E5=BA=97=E9=93=BA=E4=B8=BB=E9=A1=B5=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E7=9A=84=E5=95=86=E5=93=81=E5=88=86=E7=B1=BB=E6=8E=A5=E5=8F=A3?= =?UTF-8?q?=E7=9A=84=E8=BF=94=E5=9B=9E=E5=AE=9E=E4=BD=93=E7=B1=BB=E7=9A=84?= =?UTF-8?q?=E9=83=A8=E5=88=86=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../chanjar/weixin/channel/bean/home/tree/LevelTreeInfo.java | 5 +++-- .../weixin/channel/bean/home/tree/OneLevelTreeNode.java | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) 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 c74fff124..104588202 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 74103e2b8..76499c86e 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; }