From dbc62fa439e41411012d7aa006433f9ee98ad0f0 Mon Sep 17 00:00:00 2001 From: ningwenqiang Date: Wed, 6 Nov 2024 14:20:13 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AA=E4=BA=BA=E4=B8=AD=E5=BF=83=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E4=BD=8D=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/yunbao/common/bean/UserBean.java | 9 +++++++++ .../java/com/yunbao/main/views/MainMeViewHolder.java | 4 ++-- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/common/src/main/java/com/yunbao/common/bean/UserBean.java b/common/src/main/java/com/yunbao/common/bean/UserBean.java index c314124d7..fdd9df4f4 100644 --- a/common/src/main/java/com/yunbao/common/bean/UserBean.java +++ b/common/src/main/java/com/yunbao/common/bean/UserBean.java @@ -54,6 +54,7 @@ public class UserBean implements Parcelable { private String token_rong = ""; private String noble_end_time; private String slide; + private String slide_pic; private String users_type; private String is_bind; private String mobile; @@ -272,6 +273,14 @@ public class UserBean implements Parcelable { return slide; } + public String getSlide_pic() { + return slide_pic; + } + + public void setSlide_pic(String slide_pic) { + this.slide_pic = slide_pic; + } + public void setSlide(String slide) { this.slide = slide; } diff --git a/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java b/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java index 7d8a1a806..061600a84 100644 --- a/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java +++ b/main/src/main/java/com/yunbao/main/views/MainMeViewHolder.java @@ -314,8 +314,8 @@ public class MainMeViewHolder extends AbsMainViewHolder implements OnItemClickLi private void showData(UserBean u, List> list) { mBannerList.clear(); mBannerListNew.clear(); - if (!StringUtil.isEmpty(u.getSlide())) { - mBannerListNew.addAll(JSON.parseArray(u.getSlide(), SlideBean.class)); + if (!StringUtil.isEmpty(u.getSlide_pic())) { + mBannerListNew.addAll(JSON.parseArray(u.getSlide_pic(), SlideBean.class)); for (SlideBean bean : mBannerListNew) { if (bean.getSlide_status().equals("1")) { mBannerList.add(bean);